Skip to content

bug: ensure drained versions stable sort in status#458

Merged
jaypipes merged 1 commit into
temporalio:mainfrom
jaypipes:reconcile-hot-loop
Jul 24, 2026
Merged

bug: ensure drained versions stable sort in status#458
jaypipes merged 1 commit into
temporalio:mainfrom
jaypipes:reconcile-hot-loop

Conversation

@jaypipes

Copy link
Copy Markdown
Contributor

The reconciler loop is "hot", meaning, it is bumping the Revision of the WorkerDeployment CRs too often. One of the reasons for this is that the WorkerDeployment.Status struct was being evaluated as different from a previous iteration of the reconciler loop for the same WorkerDeployment due to differences in the sort order of the collection of drained build IDs.

This commit adds stable sorting of these drained build IDs in the WorkerDeploymentStatus struct in order to eliminate this false positive detection of a difference in status.

The other cause for false-positive detection of status differences identified in issue #415 -- where rate limiting errors cause a temporary condition change -- will be addressed in a followup PR.

Issue #415

The reconciler loop is "hot", meaning, it is bumping the Revision of the
WorkerDeployment CRs too often. One of the reasons for this is that the
WorkerDeployment.Status struct was being evaluated as different from a
previous iteration of the reconciler loop for the same WorkerDeployment
due to differences in the sort order of the collection of drained build
IDs.

This commit adds stable sorting of these drained build IDs in the
`WorkerDeploymentStatus` struct in order to eliminate this false
positive detection of a difference in status.

The other cause for false-positive detection of status differences
identified in issue temporalio#415 -- where rate limiting errors cause a temporary
condition change -- will be addressed in a followup PR.

Issue temporalio#415

Signed-off-by: Jay Pipes <jay.pipes@temporal.io>
@jaypipes
jaypipes requested review from a team and jlegrone as code owners July 24, 2026 13:38
@jaypipes
jaypipes merged commit 7e13417 into temporalio:main Jul 24, 2026
18 checks passed
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