mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
Added assertion
Original commit: elastic/x-pack-elasticsearch@3aae405242
This commit is contained in:
parent
29dd1bb888
commit
1cd5ae6a31
@ -157,6 +157,7 @@ public class AlertActionManager extends AbstractComponent {
|
||||
}
|
||||
|
||||
public void loadQueue() {
|
||||
assert actionsToBeProcessed.isEmpty() : "Queue should be empty, but contains " + actionsToBeProcessed.size() + " elements.";
|
||||
client.admin().indices().refresh(new RefreshRequest(ALERT_HISTORY_INDEX_PREFIX + "*")).actionGet();
|
||||
|
||||
SearchResponse response = client.prepareSearch(ALERT_HISTORY_INDEX_PREFIX + "*")
|
||||
|
Loading…
x
Reference in New Issue
Block a user