mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 06:16:40 +00:00
ignore state exceptions when trying to flush
This commit is contained in:
parent
0c6b82aeca
commit
7c931f34fa
@ -90,7 +90,15 @@ public class IndicesMemoryCleaner extends AbstractComponent {
|
||||
public void fullMemoryClean() {
|
||||
for (IndexService indexService : indicesService) {
|
||||
for (IndexShard indexShard : indexService) {
|
||||
indexShard.flush(new Engine.Flush().full(true));
|
||||
try {
|
||||
indexShard.flush(new Engine.Flush().full(true));
|
||||
} catch (FlushNotAllowedEngineException e) {
|
||||
// ignore this one, its temporal
|
||||
} catch (IllegalIndexShardStateException e) {
|
||||
// ignore this one as well
|
||||
} catch (Exception e) {
|
||||
logger.warn(indexShard.shardId() + ": Failed to force flush in order to clean memory", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user