-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always persist guessed set id on unknown build id (#4800)
**What changed?** - In PersistUnknownBuildId, if the build id is already present but the guessed set id is not a set id of that set, add it to the set (previously it would leave the data unchanged). - Get rid of the first unknown operation check in UpdateWorkerBuildIdCompatibility (unknown operations will error out in the mutation function anyway). **Why?** - The goal of PersistUnknownBuildId is to record that we spooled a task using a guessed set id. In the propagation lag case, PersistUnknownBuildId would see that a build id is present and not modify the data. If the build id was not the first one in its set, then we'd lose that guessed set id. - We only need to check for unknown operations once, instead of updating the options switch with each new operation, we can just update the main switch in the mutation function. **How did you test it?** unit tests
- Loading branch information
1 parent
c13afdc
commit bba21ca
Showing
3 changed files
with
51 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters