elastic/elasticsearch
View on GitHubMake SnapshotHistoryStore retry indexing history data on EsRejectedExecutionException
Open
#141887 opened on Feb 4, 2026
:Distributed/SLM>bugTeam:Distributedgood first issue
Description
ILMHistoryStore uses BulkProcessor to retry indexing history up to 3 times if it hits a EsRejectedExecutionException because the cluster was too busy. From what I can tell, SnapshotHistoryStore just makes a single attempt, and logs an error and moves on if it hits EsRejectedExecutionException. I have seen this several times in production logs. We ought to have SnapshotHistoryStore use BulkProcessor to make a few attempts before giving up.