GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — Release channel when FixedChannelPool acquire is cancelled (#17287) by normanmaurer · Pull Request #17291 · netty/netty Conversation
Member
Motivation:
Modification: Complete the caller promise with Result: Cancelled acquires no longer leak a channel or an acquired slot, and Fixes #9669. Validation:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsMotivation: `FixedChannelPool` increments `acquiredChannelCount` before its internal acquire completes. If the caller cancels the original promise and the internal acquire succeeds, `setSuccess` throws and the acquired channel is neither returned nor closed. The slot remains occupied, pending acquires may stall, and pool close cannot reach the undelivered channel. Modification: Complete the caller promise with `trySuccess` and release the channel when the promise was already completed. Add deterministic coverage for cancellation before delivery, cancelled pending acquires, queue progression, slot accounting, and pool-close races. Result: Cancelled acquires no longer leak a channel or an acquired slot, and pending acquires continue once the undelivered channel is returned. Fixes #9669. Validation: - `./mvnw -pl transport -Dtest=FixedChannelPoolTest test` - `./mvnw -pl transport test` (394 tests, 0 failures, 0 errors, 9 skipped)
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅🏷️ Commit: 2d0a63c Learn more about TestLens at testlens.app. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…) (netty#17291) Motivation: `FixedChannelPool` increments `acquiredChannelCount` before its internal acquire completes. If the caller cancels the original promise and the internal acquire succeeds, `setSuccess` throws and the acquired channel is neither returned nor closed. The slot remains occupied, pending acquires may stall, and pool close cannot reach the undelivered channel. Modification: Complete the caller promise with `trySuccess` and release the channel when the promise was already completed. Add deterministic coverage for cancellation before delivery, cancelled pending acquires, queue progression, slot accounting, and pool-close races. Result: Cancelled acquires no longer leak a channel or an acquired slot, and pending acquires continue once the undelivered channel is returned. Fixes netty#9669. Validation: - `./mvnw -pl transport -Dtest=FixedChannelPoolTest test` - `./mvnw -pl transport test` (394 tests, 0 failures, 0 errors, 9 skipped) --------- Co-authored-by: Gimin Kim <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.