Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GATEWAY] copy translog file if rename fails after retries.
Today we ignore a translog file if the rename operation fails. This can be problematic on windows if another process hodls on to the translog file. If we can't rename it we should at least try to copy it since otherwise its content will just be lost. This is a workaround for an already fixed issue in 2.0 since all translog files are write once in 2.0 and renaming / copying is not needed anymore. Conflicts: src/main/java/org/elasticsearch/index/gateway/local/LocalIndexShardGateway.java
- Loading branch information