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 — POOL: Close active unhealthy channels on release by Gimini-3 · Pull Request #17306 · netty/netty Conversation
Contributor
Motivation: When a custom Modification:
Result: Active unhealthy channels are successfully discarded without changing the Tests:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Gimini-3
marked this pull request as ready for review
|
There was an error while loading. Please reload this page.
✅ All tests passed ✅Test SummaryBuild PR / macos-x86_64-java11-boringssl build > Netty/Transport/Native/KQueue
🏷️ Commit: 42b75a3 Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Auto-port PR for 5.0: #17318 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Auto-port PR for 4.1: #17319 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Auto-port of #17306 to 4.1 Cherry-picked commit: 2f8818f --- Motivation: When a custom `ChannelHealthChecker` reports an active channel as unhealthy during release, `SimpleChannelPool` removes the channel from pool ownership and does not return it to storage, but leaves it open. The release future still succeeds, so the active channel is no longer owned by either the caller or the pool. Modification: - Close channels rejected by the release health check after invoking `channelReleased()`. - Add a regression test with a custom health checker that rejects an active channel and verifies callback ordering, release success, and channel closure. Result: Active unhealthy channels are successfully discarded without changing the `channelReleased()` callback ordering or release promise semantics. Tests: `./mvnw -pl transport -Dtest=SimpleChannelPoolTest,FixedChannelPoolTest test` --------- Co-authored-by: Gimin Kim <[email protected]> Co-authored-by: Norman Maurer <[email protected]>
Auto-port of #17306 to 5.0 Cherry-picked commit: 2f8818f --- Motivation: When a custom `ChannelHealthChecker` reports an active channel as unhealthy during release, `SimpleChannelPool` removes the channel from pool ownership and does not return it to storage, but leaves it open. The release future still succeeds, so the active channel is no longer owned by either the caller or the pool. Modification: - Close channels rejected by the release health check after invoking `channelReleased()`. - Add a regression test with a custom health checker that rejects an active channel and verifies callback ordering, release success, and channel closure. Result: Active unhealthy channels are successfully discarded without changing the `channelReleased()` callback ordering or release promise semantics. Tests: `./mvnw -pl transport -Dtest=SimpleChannelPoolTest,FixedChannelPoolTest test` --------- Co-authored-by: Gimin Kim <[email protected]> Co-authored-by: Norman Maurer <[email protected]>
…y#17319) Auto-port of netty#17306 to 4.1 Cherry-picked commit: 2f8818f --- Motivation: When a custom `ChannelHealthChecker` reports an active channel as unhealthy during release, `SimpleChannelPool` removes the channel from pool ownership and does not return it to storage, but leaves it open. The release future still succeeds, so the active channel is no longer owned by either the caller or the pool. Modification: - Close channels rejected by the release health check after invoking `channelReleased()`. - Add a regression test with a custom health checker that rejects an active channel and verifies callback ordering, release success, and channel closure. Result: Active unhealthy channels are successfully discarded without changing the `channelReleased()` callback ordering or release promise semantics. Tests: `./mvnw -pl transport -Dtest=SimpleChannelPoolTest,FixedChannelPoolTest test` --------- Co-authored-by: Gimin Kim <[email protected]> Co-authored-by: Norman Maurer <[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.