Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Safe pruning of the segmented raft log.
- When attemping to prune, the pruner will not remove files which have open readers on the file. This behavior is unchanged but clarified by a test. - The RaftLogShipper will attempt to send the requested entry. If that entry is pruned before the raft log shipper can send it, it will send the oldest entry it has, which will likely not be accepted by the follower and cause the follower to request again. The second request will be seen after pruning has happened, and the follower will be notified that a snapshot is needed. - Rename the setting "CoreEdgeClusterSetting.raft_log_pruning" to "CoreEdgeClusterSetting.raft_log_pruning_strategy" with default value "keep_all". - Removed RaftLogCompactedException. There is no need to differentiate between pruned indexes and indexes that do not yet exist. - Properly parse prune strategy for PhysicalRaftLog. - SegmentRaftLog EntryStore is refactored to EntryCursor. - Cluster now implements AutoClosable.
- Loading branch information
Max Sumrall
committed
Jun 1, 2016
1 parent
224ce54
commit 7d5af57
Showing
68 changed files
with
837 additions
and
595 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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
35 changes: 0 additions & 35 deletions
35
...rprise/core-edge/src/main/java/org/neo4j/coreedge/raft/log/RaftLogCompactedException.java
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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 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.