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:
lzh3636 2019-03-12 05:41:15 -04:00 committed by Yannick Welsch
parent 66b3a3a546
commit ad55e5b80d

View File

@ -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);
}