mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 14:26:27 +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() {
|
public void fullMemoryClean() {
|
||||||
for (IndexService indexService : indicesService) {
|
for (IndexService indexService : indicesService) {
|
||||||
for (IndexShard indexShard : indexService) {
|
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