Skip to content

Fix phase1 worker count to include workers with active metrics but no leases - #1812

Merged
akidambisrinivasan merged 1 commit into
awslabs:masterfrom
akidambisrinivasan:master
Sep 10, 2026
Merged

akidambisrinivasan merged 1 commit into
awslabs:masterfrom
akidambisrinivasan:master

Conversation

@akidambisrinivasan

Copy link
Copy Markdown
Contributor

Previously, computeSupportCodeDistribution only iterated over unexpiredLeaseOwners, causing workers that emit fleetSupportCode=SINGLE_TABLE_MIGRATION but don't hold any leases (e.g., newly started workers) to be invisible to the phase1 worker count and minSupportCode.

Fix: Pass the union of unexpiredLeaseOwners + allActiveWorkersWithMetrics to computeSupportCodeDistribution. This ensures:

  • Workers with active metrics but no leases are included (alive)
  • Workers with unexpired leases but expired metrics are included (code 0)
  • Workers with both expired leases AND expired metrics are excluded (dead)

Issue #, if available:

Description of changes:

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

… leases

Previously, computeSupportCodeDistribution only iterated over unexpiredLeaseOwners,
causing workers that emit fleetSupportCode=SINGLE_TABLE_MIGRATION but don't hold
any leases (e.g., newly started workers) to be invisible to the phase1 worker count
and minSupportCode.

Fix: Pass the union of unexpiredLeaseOwners + allActiveWorkersWithMetrics to
computeSupportCodeDistribution. This ensures:
- Workers with active metrics but no leases are included (alive)
- Workers with unexpired leases but expired metrics are included (code 0)
- Workers with both expired leases AND expired metrics are excluded (dead)
@akidambisrinivasan
akidambisrinivasan merged commit d87a3d3 into awslabs:master Sep 10, 2026
5 of 6 checks passed

This branch had an error being deployed

1 failed deployment
manual-approval — 2d1b5d4b Deployed Sep 10, 2026 by akidambisrinivasan via wait-for-approval #306
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