SOLR-13849: Ignore events created by running triggers.

This commit is contained in:
Andrzej Bialecki 2019-10-16 10:32:54 +02:00
parent b7309899e1
commit ac418540d0
1 changed files with 8 additions and 2 deletions

View File

@ -215,10 +215,16 @@ public class TestSnapshotCloudManager extends SolrCloudTestCase {
// ignore these because SimCloudManager always modifies them
private static final Set<Pattern> IGNORE_DISTRIB_STATE_PATTERNS = new HashSet<>(Arrays.asList(
Pattern.compile("/autoscaling/triggerState.*"),
Pattern.compile("/clusterstate\\.json"), // different format in SimClusterStateProvider
Pattern.compile("/autoscaling/triggerState/.*"),
// some triggers may have run after the snapshot was taken
Pattern.compile("/autoscaling/events/.*"),
// we always use format 1 in SimClusterStateProvider
Pattern.compile("/clusterstate\\.json"),
// depending on the startup sequence leaders may differ
Pattern.compile("/collections/[^/]+?/leader_elect/.*"),
Pattern.compile("/collections/[^/]+?/leaders/.*"),
Pattern.compile("/collections/[^/]+?/terms/.*"),
Pattern.compile("/overseer_elect/election/.*"),
Pattern.compile("/live_nodes/.*")
));