mikemccand commented on a change in pull request #1777:
URL: https://github.com/apache/lucene-solr/pull/1777#discussion_r475556180



##########
File path: lucene/core/src/java/org/apache/lucene/index/SegmentInfos.java
##########
@@ -836,16 +835,24 @@ final String finishCommit(Directory dir) throws 
IOException {
     if (pendingCommit == false) {
       throw new IllegalStateException("prepareCommit was not called");
     }
-    boolean success = false;
+    boolean successRenameAndSync = false;
     final String dest;
     try {
       final String src = 
IndexFileNames.fileNameFromGeneration(IndexFileNames.PENDING_SEGMENTS, "", 
generation);
       dest = IndexFileNames.fileNameFromGeneration(IndexFileNames.SEGMENTS, 
"", generation);
       dir.rename(src, dest);
-      dir.syncMetaData();
-      success = true;
+      try {
+        dir.syncMetaData();

Review comment:
       Our wild randomized testing infra was throwing an exception, rarely, in 
`syncMetaData`?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to