-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Allow to trim all ops above a certain seq# with a term lower than X #30176
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
Merged
vladimirdolzhenko
merged 54 commits into
elastic:master
from
vladimirdolzhenko:trim_translog
Jun 8, 2018
Merged
Changes from 48 commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
d3d210a
Allow to trim all ops above a certain seq# with a term lower than X
vladimirdolzhenko e622794
Allow to trim all ops above a certain seq# with a term lower than X
586908c
Allow to trim all ops above a certain seq# with a term lower than X -…
92addd1
Allow to trim all ops above a certain seq# with a term lower than X -…
2a9c58c
Allow to trim all ops above a certain seq# with a term lower than X -…
1e67a8a
Allow to trim all ops above a certain seq# with a term lower than X -…
d454a30
Allow to trim all ops above a certain seq# with a term lower than X -…
92d2d68
merged from master
13ae045
Allow to trim all ops above a certain seq# with a term lower than X -…
762f298
Allow to trim all ops above a certain seq# with a term lower than X -…
3896280
Allow to trim all ops above a certain seq# with a term lower than X -…
2c13980
Allow to trim all ops above a certain seq# with a term lower than X -…
49167c8
Allow to trim all ops above a certain seq# with a term lower than X -…
eaef2e4
Allow to trim all ops above a certain seq# with a term lower than X -…
ef7811d
Allow to trim all ops above a certain seq# with a term lower than X -…
928ac1e
Allow to trim all ops above a certain seq# with a term lower than X -…
fd6e16e
Allow to trim all ops above a certain seq# with a term lower than X -…
65604be
Allow to trim all ops above a certain seq# with a term lower than X -…
c215e6c
Allow to trim all ops above a certain seq# with a term lower than X -…
7c33612
Allow to trim all ops above a certain seq# with a term lower than X -…
6a41d7b
Allow to trim all ops above a certain seq# with a term lower than X -…
1afd5be
move translog checks under the lock, prevent readers being double closed
96ff7aa
we intend to break translog - make chance of failure proportional to …
42aec35
some test code cleanup - create and add operations to translog in the…
bdbcffa
added testSyncerSendsMaxSeqNo
51cf6d6
extend test to check that trimAboveSeqNo goes only in the 0th request
963f7b6
add assertion on assumption that translog.current has no any op seq# …
dbb9b13
fix broken test
edc4fe6
rebuild assertion check on assumption that translog.current has no an…
2f99f3b
extend test with duplicates <same seq#, lower primaryTerm>
dac5945
fixed assertNoSeqAbove - op.primaryTerm < belowTerm; small cosmetic f…
cd19157
dropped testSyncerSendsMaxSeqNo as all tested functionality is covere…
4060cd7
assertNoSeqAbove has to take into account seq > aboveSeqNo rather >=
8075a7d
dropped unnecessary seq# check in assertNoSeqAbove
1299112
use the most pessimistic fail rate approach in testRandomExceptionsOn…
f7d8f52
simplified testSnapshotTrimmedOperations
d4fb32b
fixing testSnapshotTrimmedOperations: higher term with the same seq# …
5c565c4
fixing testSnapshotTrimmedOperations: duplicates could have only forw…
5a88b65
Revert "rebuild assertion check on assumption that translog.current h…
4b6da39
addressing case of trimming trimmed translog
108f8af
fixed testSnapshotCurrentHasUnexpectedOperationsForTrimmedOperations:…
cbba0b1
Merge remote-tracking branch 'remotes/origin/master' into trim_translog
cdbb0a1
aboveSeqNo has to be aboveOrEqSeqNo to be able to trim op those are s…
147e709
reverted back to aboveSeqNo, make NO_OPS_PERFORMED valid seq#
dc9c2dd
simplified testSnapshotTrimmedOperations and dropped testSnapshotTrim…
7a0750d
Merge remote-tracking branch 'remotes/origin/master' into trim_translog
9cb43c7
Merge remote-tracking branch 'remotes/origin/master' into trim_translog
99ae2df
streamification; InMemoryTranslog does not delegate anything to translog
ba339d9
Merge remote-tracking branch 'remotes/origin/master' into trim_translog
0f9b206
keep operationsList and currentOperations apart
9d74767
drop assumption on not trimming current in InMemoryTranslog
546c890
Merge remote-tracking branch 'remotes/origin/master' into trim_translog
db4105f
Merge remote-tracking branch 'remotes/origin/master' into trim_translog
88f702b
InMemoryTranslog simplification
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.