Skip to content

Treat expired pending handoff leases as available lease to take - #1765

Merged
chenylee-aws merged 1 commit into
awslabs:masterfrom
chenylee-aws:lease_count_shutdown
Jun 2, 2026
Merged

chenylee-aws merged 1 commit into
awslabs:masterfrom
chenylee-aws:lease_count_shutdown

Conversation

@chenylee-aws

Copy link
Copy Markdown
Contributor

Description of changes:

LeaseCountBasedLeaseAssignmentDecider.balanceWorkerVariance() previously excluded all leases with shutdownRequested=true from rebalancing, even after the handoff timed out. This PR replaces the shutdownRequested() filter with blockedOnPendingCheckpoint(currentTimeMillis), so expired handoff leases can be reassigned while active handoffs remain protected.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@chenylee-aws
chenylee-aws merged commit 09bef5e into awslabs:master Jun 2, 2026
5 of 6 checks passed
@chenylee-aws
chenylee-aws deleted the lease_count_shutdown branch June 2, 2026 23:31
vincentvilo-aws pushed a commit to vincentvilo-aws/amazon-kinesis-client that referenced this pull request Jun 17, 2026

This branch had an error being deployed

1 failed deployment
manual-approval — ad205312 Deployed May 29, 2026 by chenylee-aws via wait-for-approval #205
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants