Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When replaying from translog flushes are currently not allowed for historic reasons in stateful. However, the way translog is handled in stateless reintroduced a similar reason - when we flush we assume that the newest translog is all that need to be replayed in case of a crash. Fix this to now copy over the translog info if we flush during translog replay. Flushes can primarily happen during translog replay due to inaccuracies in the live version map causing it to go unsafe, subsequently causing a refresh, which converts toa flush in stateless. However, we could run in a disk constrained env during replay and as such allowing flushes seems safer.
- Loading branch information