mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
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.
This commit is contained in:
parent
66b3a3a546
commit
ad55e5b80d
@ -455,7 +455,7 @@ public class Store extends AbstractIndexShardComponent implements Closeable, Ref
|
||||
} catch (IndexNotFoundException ex) {
|
||||
// that's fine - happens all the time no need to log
|
||||
} catch (FileNotFoundException | NoSuchFileException ex) {
|
||||
logger.info("Failed to open / find files while reading metadata snapshot");
|
||||
logger.info("Failed to open / find files while reading metadata snapshot", ex);
|
||||
} catch (ShardLockObtainFailedException ex) {
|
||||
logger.info(() -> new ParameterizedMessage("{}: failed to obtain shard lock", shardId), ex);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user