- Notifications
You must be signed in to change notification settings - Fork 1.5k
Improve the recovery speed of the txnStateStore #1729
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
Improve the recovery speed of the txnStateStore #1729
Conversation
| self->cursor = self->logSystem->peekTxs( UID(), self->recoveryLoc, self->peekLocality ? self->peekLocality->get().primaryLocality : tagLocalityInvalid, self->peekLocality ? self->peekLocality->get().knownCommittedVersion : invalidVersion ); | ||
| self->localityChanged = self->peekLocality->onChange(); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had to put a wait(delay(0)) above the continue; on line 69, because getMore returns when there's a message, or when the version changes, and it appears we now have a very large number of version changes in a row. When that happens, there's a loop of wait(getMore) -> break -> !hasMessage() -> continue -> wait(getMore) that overflows the stack.
…en different numbers of logs
…of transaction logs because of forced recoveries
…ges of empty versions
… will become after changing the number of txs tags
# Conflicts: # fdbserver/TagPartitionedLogSystem.actor.cpp
| localSets.push_back(log); | ||
| if(log->locality == tagLocalitySatellite) { | ||
| bestSatelliteSet = localSets.size() - 1; | ||
| } else { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo s/sattelite/satellite
Co-Authored-By: Alex Miller <35046903+alexmiller-apple@users.noreply.github.com>
Co-Authored-By: Alex Miller <35046903+alexmiller-apple@users.noreply.github.com>
Co-Authored-By: Alex Miller <35046903+alexmiller-apple@users.noreply.github.com>
Co-Authored-By: Alex Miller <35046903+alexmiller-apple@users.noreply.github.com>
This PR still has some correctness problems that need to be fixed.