Skip to content

Conversation

@k3zi
Copy link
Contributor

@k3zi k3zi commented Aug 3, 2025

Corrects two scenarios where stale state in the load balancer could prevent a graceful channel shutdown.

Previously, multiple endpoint updates or changes to the load balancer could leave undiscarded subchannels or old load balancers in the channel's state, blocking a clean shutdown.

This change ensures that previous subchannels and load balancers are fully removed from state when they shutdown. This also corrects a related test, which had been passing incorrectly due to an explicit cancellation masking the issue.

Corrects two scenarios where stale state in the load balancer could prevent a graceful channel shutdown.

Previously, multiple endpoint updates or changes to the load balancer could leave undiscarded subchannels or old load balancers in the channel's state, blocking a clean shutdown.

This change ensures that previous subchannels and load balancers are fully removed from state when they shutdown. This also corrects a related test, which had been passing incorrectly due to an explicit cancellation masking the issue.
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Aug 3, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Aug 4, 2025
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good but the formatter isn't happy. ./dev/format.sh should fix it.

@k3zi k3zi requested a review from glbrntt August 4, 2025 09:57
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@glbrntt glbrntt merged commit 24cded1 into grpc:main Aug 4, 2025
34 checks passed
dongjoon-hyun added a commit to apache/spark-connect-swift that referenced this pull request Aug 26, 2025
### What changes were proposed in this pull request?

This PR aims to upgrade `gRPC Swift NIO Transport` to 2.1.0.

### Why are the changes needed?

To bring the latest improvements.
- https://github.com/grpc/grpc-swift-nio-transport/releases/tag/2.1.0
  - grpc/grpc-swift-nio-transport#122
  - grpc/grpc-swift-nio-transport#120
  - grpc/grpc-swift-nio-transport#115

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #218 from dongjoon-hyun/SPARK-53371.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
dongjoon-hyun added a commit to apache/spark-connect-swift that referenced this pull request Aug 26, 2025
### What changes were proposed in this pull request?

This PR aims to upgrade `gRPC Swift NIO Transport` to 2.1.0.

### Why are the changes needed?

To bring the latest improvements.
- https://github.com/grpc/grpc-swift-nio-transport/releases/tag/2.1.0
  - grpc/grpc-swift-nio-transport#122
  - grpc/grpc-swift-nio-transport#120
  - grpc/grpc-swift-nio-transport#115

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Pass the CIs.

### Was this patch authored or co-authored using generative AI tooling?

No.

Closes #218 from dongjoon-hyun/SPARK-53371.

Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
(cherry picked from commit a94af2e)
Signed-off-by: Dongjoon Hyun <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 semver/patch No public API change.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants