-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add graceful shutdown drain to ServiceBusProcessorClient #48192
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
Open
EldertGrootenboer
wants to merge
47
commits into
Azure:main
Choose a base branch
from
EldertGrootenboer:fix/servicebus-processor-graceful-shutdown-45716
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
0054f09
Add graceful shutdown drain to ServiceBusProcessorClient (#45716)
EldertGrootenboerMS 26baa9a
Add re-entrancy guards to drain methods to prevent self-deadlock
EldertGrootenboerMS 9248595
Add closing flag to prevent handler dispatch after drain starts
EldertGrootenboerMS aaa21c9
Use ThreadLocal.remove() instead of set(FALSE) in handler finally blocks
EldertGrootenboerMS d8ec586
Fix spotless formatting in graceful shutdown test
EldertGrootenboerMS 94a93a1
Re-entrant drain waits for other concurrent handlers before closing
EldertGrootenboerMS 18c7f4a
Add close() Javadoc for drain behavior and try/finally cleanup in tests
EldertGrootenboerMS db62682
Add V1 closing flag to prevent handler dispatch during drain-to-cance…
EldertGrootenboerMS f361b40
Reset v1Closing flag in start() to support processor restart after close
EldertGrootenboerMS 0809f0b
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer d227f13
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer 5a709c3
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer 7add307
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer 6cc2f5b
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer 74a38e6
feat(servicebus): Add configurable drain timeout for processor shutdown
EldertGrootenboerMS 668692f
fix(servicebus): Use ClientLogger for exception throwing in ServiceBu…
EldertGrootenboerMS 04e15c4
fix(spring): Add drainTimeout property to Spring Cloud Azure ServiceB…
EldertGrootenboerMS 0b55c6e
fix(spring): Remove factory wiring for drainTimeout (compiled against…
EldertGrootenboerMS 2420132
docs(servicebus): Clarify close() re-entrant behavior in Javadoc
EldertGrootenboerMS 78bc74d
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer 2c68dc8
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer e724874
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer e35abb2
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer ccfb597
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer 92fb19b
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer 1f2dd40
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer 5df3f64
docs(spring): Add CHANGELOG entries for ServiceBus drainTimeout property
EldertGrootenboerMS 4ae104a
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer afb2728
fix(servicebus): Release client monitor across drain in ServiceBusPro…
EldertGrootenboerMS fa70fc3
fix(servicebus): Guard lifecycle methods against concurrent close dra…
EldertGrootenboerMS b3b5d89
fix(servicebus): Cache identifier in getIdentifier() to avoid lazy re…
EldertGrootenboerMS ead0651
fix(servicebus): Single-owner V1 close via CAS; getIdentifier returns…
EldertGrootenboerMS 7a23053
docs(servicebus): Document nullable getIdentifier() return value
EldertGrootenboerMS 0d3023e
test(servicebus): Replace flaky Thread.sleep with deterministic isRun…
EldertGrootenboerMS 4ed0867
test(servicebus): Replace remaining flaky Thread.sleep with determini…
EldertGrootenboerMS 481f1bf
fix(spring): Revert non-functional drainTimeout property additions
EldertGrootenboerMS 886afde
fix(servicebus): Add v2CloseInProgress gate; deterministic v2ClosingF…
EldertGrootenboerMS e3c06e0
fix(servicebus): Null-safe connection monitor + drain-completion as d…
EldertGrootenboerMS 33f1107
docs(servicebus): Document re-entrant drain semantics in three drain …
EldertGrootenboerMS c3b1128
test(servicebus): Add validation/propagation tests for drainTimeout(D…
EldertGrootenboerMS d6f4fa9
fix(spring): Re-add drainTimeout property scaffolding to satisfy SDK-…
EldertGrootenboerMS efad1d4
Merge branch 'main' into fix/servicebus-processor-graceful-shutdown-4…
EldertGrootenboer f75c307
fix(servicebus): Skip-path messages no longer extend drain under sust…
EldertGrootenboerMS 28c481b
fix(servicebus): Deliver V1 errors during shutdown, mirror fast-path …
EldertGrootenboerMS ec904c1
docs(spring): Rewrite getDrainTimeout() Javadoc to be version-agnostic
EldertGrootenboerMS 859723d
fix(servicebus): Validate non-null drainTimeout in ServiceBusProcesso…
EldertGrootenboerMS a5d44df
fix(servicebus): Drain skip-path is PEEK_LOCK only to avoid RECEIVE_A…
EldertGrootenboerMS 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
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.
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.