Skip to content

Commit fe405bd

Browse files
ginolzhywelsch
authored andcommitted
Log missing file exception when failing to read metadata snapshot (#32920)
Adds the exception to the logged output, which contains info about the file that's missing.
1 parent 0098c2e commit fe405bd

File tree

1 file changed

+1
-1
lines changed
  • server/src/main/java/org/elasticsearch/index/store

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/store/Store.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ public static MetadataSnapshot readMetadataSnapshot(Path indexLocation, ShardId
455455
} catch (IndexNotFoundException ex) {
456456
// that's fine - happens all the time no need to log
457457
} catch (FileNotFoundException | NoSuchFileException ex) {
458-
logger.info("Failed to open / find files while reading metadata snapshot");
458+
logger.info("Failed to open / find files while reading metadata snapshot", ex);
459459
} catch (ShardLockObtainFailedException ex) {
460460
logger.info(() -> new ParameterizedMessage("{}: failed to obtain shard lock", shardId), ex);
461461
}

0 commit comments

Comments
 (0)