-
Notifications
You must be signed in to change notification settings - Fork 1
fix(BucketWatcherManager): release mu before watcher.Start to avoid self-deadlock #3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
32cf15e
fix(BucketWatcherManager): release mu before watcher.Start to avoid s…
omer9564 0c5f270
test(integration): aggressively clean up host-port-binding containers…
omer9564 8573092
Revert "test(integration): aggressively clean up host-port-binding co…
omer9564 02f5d4e
fix(BucketWatcherManager): serialize creates with createMu and add st…
omer9564 b7514fb
test(integration): use compose override to drop unneeded NATS host-po…
omer9564 a2dc5ea
test(integration): dump compose logs on failure for diagnostics
omer9564 831458e
fix(example): point OPA at the in-network NATS service name
omer9564 91097ae
test(integration): per-call HTTP timeout + OPA pprof goroutine dump o…
omer9564 d68e179
test(integration): poll for async watcher registration instead of ass…
omer9564 2124185
test(integration): compare members across calls, not the whole `x`
omer9564 09ee846
fix(BucketWatcherManager): perform LRU eviction outside gwm.mu
omer9564 1dcfc1d
test(BucketWatcherManager): cover deadlock + eviction + stop-drain sc…
omer9564 f16437d
revert(example): default server_url back to localhost; use config-com…
omer9564 5ffd8cd
docs(BucketWatcherManager): correct misleading comments
omer9564 679fda2
fix(BucketWatcherManager): apply createMu/stopping flow to root watcher
omer9564 9a1f93f
refactor(BucketWatcherManager): drop unreachable Contains guard on sl…
omer9564 fe6172c
fix(BucketWatcher): make Stop/watchLoop handshake race-free
omer9564 22f9fa3
test(BucketWatcherManager): tighten sync points and exercise real wat…
omer9564 1cecfd7
test(integration): bound docker logs/ps with timeout to survive a hun…
omer9564 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # Override for TestIntegration (cmd/opa-nats/main_test.go). | ||
| # Suppresses host-port bindings on services we don't talk to from the test | ||
| # runner so we don't collide with whatever else may be using those ports | ||
| # on the host (in CI, the workflow's `services: nats:` already binds 4222). | ||
| # OPA's 8181 is the only port the test reaches, so it stays published. | ||
| # Adds --pprof to OPA so the test can grab a goroutine dump from | ||
| # /debug/pprof/goroutine?debug=2 if a request hangs. | ||
| services: | ||
| nats: | ||
| ports: !reset [] | ||
| nats-ui: | ||
| ports: !reset [] | ||
| opa: | ||
| command: ["run", "--server", "--config-file=/config/config.yaml", "/policies", "--addr", "0.0.0.0:8181", "--pprof"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.