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

[release-1.22] Defragment etcd datastore before clearing alarms; don't delete temp etcd db while reconciling #5340

Merged
merged 1 commit into from Mar 28, 2022

Conversation

brandond
Copy link
Contributor

@brandond brandond commented Mar 26, 2022

Proposed Changes

Defragment etcd datastore before clearing alarms.

This also fixes an issue wherein we were deleting the temporary etcd directory while the reconcile etcd was still running. This doesn't seem to be currently causing any problems, as etcd seems to be able to open the files and read them into memory before they are unlinked, but it could possibly cause problems reconciling larger datastores, and it was definitely breaking the defragmentation and clearing of alarms on the reconciliation datastore.

Types of Changes

bugfix

Verification

Not sure how to reproduce this one, since it requires a datastore that is not just over quota but also defragmented. It would probably require setting up a long-running cluster with lots of datastore churn.

Linked Issues

User-Facing Change

The embedded etcd database is now defragmented on startup.
Fixed an issue that could cause restart of managed etcd nodes to occasionally fail while reconciling bootstrap data.

Further Comments

@brandond brandond requested a review from a team as a code owner March 26, 2022 00:13
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
@brandond brandond force-pushed the etcd_defragment_release-1.22 branch from 046cb6d to e1fcb0d Compare March 28, 2022 08:31
@brandond brandond merged commit 4cc9a48 into k3s-io:release-1.22 Mar 28, 2022
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.

None yet

2 participants