Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CORE] Handle truncated translog gracefully
We used to handle truncated translogs in a better manner (assuming that the node was killed halfway through writing an operation and discarding the last operation). This brings back that behavior by catching an `EOFException` during the stream reading and throwing a `TruncatedTranslogException` which can be safely ignored in `IndexShardGateway`. Fixes #9699
- Loading branch information
Showing
5 changed files
with
70 additions
and
2 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
Binary file added
BIN
+383 Bytes
src/test/resources/org/elasticsearch/index/translog/translog-v1-truncated.binary
Binary file not shown.