Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version check patch #383

Merged
merged 3 commits into from
Nov 6, 2023
Merged

version check patch #383

merged 3 commits into from
Nov 6, 2023

Conversation

agouin
Copy link
Member

@agouin agouin commented Nov 6, 2023

The version-check initContainer and version-check-term container should use the Patch operation instead of Update to avoid race conditions that can result in errors logs such as:

failed to patch status: Operation cannot be fulfillfed on cosmosfullnodes.cosmos.strange.love: the object has been modified

This is only seen intermittently, and the instance will automatically recover on the next restart.

Since the version check is a synchronous operation per instance, we don't need to worry about multiple concurrent writers to the status.height of the specific instance. The RPC status.height updates will only occur after this when the node is started.

@agouin agouin marked this pull request as ready for review November 6, 2023 17:12
@agouin agouin merged commit a2fbafa into main Nov 6, 2023
4 checks passed
@agouin agouin deleted the andrew/version_check_patch branch November 6, 2023 17:18
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