@@ -246,7 +246,6 @@ public MetadataSnapshot getMetadata(IndexCommit commit) throws IOException {
246246 }
247247 }
248248
249-
250249 /**
251250 * Renames all the given files from the key of the map to the
252251 * value of the map. All successfully renamed files are removed from the map in-place.
@@ -372,7 +371,6 @@ private void closeInternal() {
372371 }
373372 }
374373
375-
376374 /**
377375 * Reads a MetadataSnapshot from the given index locations or returns an empty snapshot if it can't be read.
378376 *
@@ -580,7 +578,7 @@ private static void failIfCorrupted(Directory directory, ShardId shardId) throws
580578 /**
581579 * This method deletes every file in this store that is not contained in the given source meta data or is a
582580 * legacy checksum file. After the delete it pulls the latest metadata snapshot from the store and compares it
583- * to the given snapshot. If the snapshots are inconsistent an illegal state exception is thrown
581+ * to the given snapshot. If the snapshots are inconsistent an illegal state exception is thrown.
584582 *
585583 * @param reason the reason for this cleanup operation logged for each deleted file
586584 * @param sourceMetaData the metadata used for cleanup. all files in this metadata should be kept around.
@@ -624,9 +622,9 @@ final void verifyAfterCleanup(MetadataSnapshot sourceMetaData, MetadataSnapshot
624622 for (StoreFileMetaData meta : recoveryDiff .different ) {
625623 StoreFileMetaData local = targetMetaData .get (meta .name ());
626624 StoreFileMetaData remote = sourceMetaData .get (meta .name ());
627- // if we have different files the they must have no checksums otherwise something went wrong during recovery.
628- // we have that problem when we have an empty index is only a segments_1 file then we can't tell if it's a Lucene 4.8 file
629- // and therefore no checksum. That isn't much of a problem since we simply copy it over anyway but those files come out as
625+ // if we have different files then they must have no checksums; otherwise something went wrong during recovery.
626+ // we have that problem when we have an empty index is only a segments_1 file so we can't tell if it's a Lucene 4.8 file
627+ // and therefore no checksum is included . That isn't a problem since we simply copy it over anyway but those files come out as
630628 // different in the diff. That's why we have to double check here again if the rest of it matches.
631629
632630 // all is fine this file is just part of a commit or a segment that is different
@@ -659,7 +657,6 @@ static final class StoreDirectory extends FilterDirectory {
659657 this .deletesLogger = deletesLogger ;
660658 }
661659
662-
663660 @ Override
664661 public void close () throws IOException {
665662 assert false : "Nobody should close this directory except of the Store itself" ;
0 commit comments