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

refactor: increment sync_seqn after meta update #809

Merged
merged 1 commit into from
Feb 15, 2025

Conversation

gabriele-0201
Copy link
Contributor

Incrementing sync_seqn right away within the sync function lead to a scenarion where if an error occurred whithin the sync process the nomt instance would get poisoned, but the same instance if queried would return the following sync_seqn which was never applied.
What did in this pr I'm not sure if solves entirely the problem, maybe it just moves it in a less painful place (that makes torture to work fine).

Updating it after having update the Meta means that we reflect the state on disk, but if a failure occur during the write of the ht the instance get poisoned, the sync_seqn fetch from the same instance would be correct but it would not be able to read a correct state because there would be a pending WAL batch to be applied to the ht.

Copy link
Contributor Author

gabriele-0201 commented Feb 13, 2025

@gabriele-0201 gabriele-0201 force-pushed the gm_not_increase_sync_seqn_right_away branch from 4f221d6 to 366e760 Compare February 14, 2025 09:07
@gabriele-0201 gabriele-0201 changed the base branch from master to gm_torture_unify_rollback_and_rollback_crash February 14, 2025 09:07
Copy link
Contributor

pepyakin commented Feb 15, 2025

Merge activity

  • Feb 15, 2:32 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 15, 2:40 AM EST: Graphite rebased this pull request as part of a merge.
  • Feb 15, 2:42 AM EST: A user merged this pull request with Graphite.

@pepyakin pepyakin changed the base branch from gm_torture_unify_rollback_and_rollback_crash to graphite-base/809 February 15, 2025 07:37
@pepyakin pepyakin changed the base branch from graphite-base/809 to master February 15, 2025 07:39
@pepyakin pepyakin force-pushed the gm_not_increase_sync_seqn_right_away branch from 366e760 to 18e68eb Compare February 15, 2025 07:40
@pepyakin pepyakin merged commit a5af898 into master Feb 15, 2025
8 checks passed
@pepyakin pepyakin deleted the gm_not_increase_sync_seqn_right_away branch February 15, 2025 07:42
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