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

server: Attempt to fix data corruption #13840

Closed
wants to merge 1 commit into from

Conversation

serathius
Copy link
Member

@serathius serathius commented Mar 26, 2022

Based on git bisect I identified 5005167 as root cause (still not 100% confirmed). In this commit the only change I think could introduce the corruption content of OnPreCommitUnsafe. Call to this method was introduced in https://github.com/etcd- io/etcd/pull/12855/commits/9f11b16b2dcab5922bed18b818b84fc1113f7e06 where it is called by commit method.

Overall I found it weird in #12855 that introduces both changes, fact that this refactor adds calls indexer.UnsafeWrite outside read lock, which doesn't match previous behavior. This is still guessing, and I haven't verified the fix, so I leave it up to author/reviewers of the original PR. cc @ptab

@serathius serathius requested a review from ptabor March 26, 2022 00:40
@serathius serathius marked this pull request as draft March 26, 2022 00:42
@serathius
Copy link
Member Author

serathius commented Mar 26, 2022

Ok, I managed to reproduce the issue with this fix. So, this is not a correct fix at least on main branch.

@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.48%. Comparing base (4019c59) to head (c3b7ebb).
Report is 4322 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #13840      +/-   ##
==========================================
- Coverage   72.54%   72.48%   -0.07%     
==========================================
  Files         468      468              
  Lines       38222    38222              
==========================================
- Hits        27730    27705      -25     
- Misses       8709     8726      +17     
- Partials     1783     1791       +8     
Flag Coverage Δ
all 72.48% <100.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@serathius
Copy link
Member Author

Closing for #13844

@serathius serathius closed this Mar 28, 2022
@serathius serathius deleted the data-corruption-fix branch June 15, 2023 20:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants