[DOCS] Fix typos in InternalEngine.java comments (#46861)
This commit is contained in:
parent
1beeb3a83e
commit
a56daeae2d
|
@ -2456,10 +2456,10 @@ public class InternalEngine extends Engine {
|
|||
}
|
||||
|
||||
final void ensureCanFlush() {
|
||||
// translog recover happens after the engine is fully constructed
|
||||
// if we are in this stage we have to prevent flushes from this
|
||||
// translog recovery happens after the engine is fully constructed.
|
||||
// If we are in this stage we have to prevent flushes from this
|
||||
// engine otherwise we might loose documents if the flush succeeds
|
||||
// and the translog recover fails we we "commit" the translog on flush.
|
||||
// and the translog recovery fails when we "commit" the translog on flush.
|
||||
if (pendingTranslogRecovery.get()) {
|
||||
throw new IllegalStateException(shardId.toString() + " flushes are disabled - pending translog recovery");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue