mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
add logging on which state file failed to load
This commit is contained in:
parent
ce4f09c2b1
commit
85ee6eaf10
@ -306,7 +306,7 @@ public class LocalGateway extends AbstractLifecycleComponent<Gateway> implements
|
||||
this.currentMetaState = readMetaState(Streams.copyToByteArray(new FileInputStream(new File(location, "metadata-" + version))));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.warn("failed to read local state", e);
|
||||
logger.warn("failed to read local state (metadata)", e);
|
||||
}
|
||||
}
|
||||
|
||||
@ -317,7 +317,7 @@ public class LocalGateway extends AbstractLifecycleComponent<Gateway> implements
|
||||
this.currentStartedShards = readStartedShards(Streams.copyToByteArray(new FileInputStream(new File(location, "shards-" + version))));
|
||||
}
|
||||
} catch (Exception e) {
|
||||
logger.warn("failed to read local state", e);
|
||||
logger.warn("failed to read local state (started shards)", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user