Skip to content

Commit

Permalink
[DOCS] Fix typos in InternalEngine.java comments (#46861)
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuya Kajiwara authored and jrodewig committed Oct 18, 2019
1 parent bd03cb9 commit c39c1f4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2456,10 +2456,10 @@ protected void commitIndexWriter(final IndexWriter writer, final Translog transl
}

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");
}
Expand Down

0 comments on commit c39c1f4

Please sign in to comment.