Commit f439a5c
authored
testserver: add locking for secret ACLs (#3587)
Fixes this:
```
fatal error: concurrent map writes
goroutine 2662 [running]:
internal/runtime/maps.fatal({0x102f562ed?, 0x103479c40?})
/Users/runner/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:1058 +0x20
github.com/databricks/cli/libs/testserver.AddDefaultHandlers.func70({{0x14002c811a0, 0x4}, 0x14002356c60, 0x140020961b0, {0x14001842800, 0x50, 0x200}, 0x14002096300, 0x1400088e1a0, {0x103740b80, ...}})
/Users/runner/work/cli/cli/libs/testserver/handlers.go:489 +0x264
github.com/databricks/cli/libs/testserver.(*Server).Handle.func1({0x10373d1e0, 0x14000def500}, 0x14001e09540)
/Users/runner/work/cli/cli/libs/testserver/server.go:276 +0x228
```
https://github.com/databricks/cli/actions/runs/17618351931/job/50057421389?pr=35861 parent faebed1 commit f439a5c
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
448 | 450 | | |
449 | 451 | | |
450 | 452 | | |
| |||
461 | 463 | | |
462 | 464 | | |
463 | 465 | | |
| 466 | + | |
| 467 | + | |
464 | 468 | | |
465 | 469 | | |
466 | 470 | | |
| |||
476 | 480 | | |
477 | 481 | | |
478 | 482 | | |
| 483 | + | |
| 484 | + | |
479 | 485 | | |
480 | 486 | | |
481 | 487 | | |
| |||
0 commit comments