Bläddra i källkod

[DOCS] Fix typos in InternalEngine.java comments (#46861)

Takuya Kajiwara 6 år sedan
förälder
incheckning
602081f19c

+ 3 - 3
server/src/main/java/org/elasticsearch/index/engine/InternalEngine.java

@@ -2452,10 +2452,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");
         }