Skip to content

Conversation

@carlydf
Copy link
Collaborator

@carlydf carlydf commented Nov 10, 2025

What was changed

Bug Fix: Ignore LastModifierIdentity if server deleted a version for garbage collection

Also, fix issue in describe version that would sometimes cause a deprecated version to be Drained with nil DrainedSince time.

Why?

The server sets the LastModifierIdentity to "try-delete-for-add-version" when it deletes old versions to do garbage collection upon addition of the a worker version beyond the maximum. We are changing this on the server and will patch v1.29 of the OSS server to handle this more gracefully in v1.29.2 of the server, however, for users who cannot or do not want to use the new patch of the server immediately, this will fix the problem for them on the controller side so that they won't encounter this if they're running against Temporal Server v1.29.1 or v1.29.0.

The issue of nil DrainedSince time caused flakiness in tests that involve Deprecated Drained versions. That flakiness appeared a lot in the new test I added to test the bug fix, so I also fixed that.

Checklist

  1. Closes

  2. How was this tested:
    New functional test

  3. Any docs updates needed?

@carlydf carlydf requested review from a team and jlegrone as code owners November 10, 2025 23:48
@carlydf carlydf merged commit f8c1582 into main Nov 11, 2025
14 of 15 checks passed
@carlydf carlydf deleted the 101st-version-success branch November 11, 2025 18:53
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.

3 participants