Skip to content

Commit fdddde5

Browse files
committed
Revert "Mute MetadataCreateIndexServiceTests.testValidateDotIndex because of Lucene RegExp tilde operator changes"
This reverts commit 6d4d437.
1 parent 6d4d437 commit fdddde5

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

server/src/test/java/org/elasticsearch/cluster/metadata/MetadataCreateIndexServiceTests.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88

99
package org.elasticsearch.cluster.metadata;
1010

11-
import org.apache.lucene.util.automaton.Automaton;
12-
import org.apache.lucene.util.automaton.CharacterRunAutomaton;
13-
import org.apache.lucene.util.automaton.Operations;
14-
import org.apache.lucene.util.automaton.RegExp;
1511
import org.elasticsearch.ExceptionsHelper;
1612
import org.elasticsearch.ResourceAlreadyExistsException;
1713
import org.elasticsearch.TransportVersion;
@@ -616,20 +612,9 @@ public void testCalculateNumRoutingShards() {
616612
}
617613
}
618614

619-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/112453")
620615
public void testValidateDotIndex() {
621616
List<SystemIndexDescriptor> systemIndexDescriptors = new ArrayList<>();
622617
systemIndexDescriptors.add(SystemIndexDescriptorUtils.createUnmanaged(".test-one*", "test"));
623-
//TODO Lucene 10 upgrade
624-
// The "~" operator in Rexeg Automata doesn't seem to work as expected any more without minimization
625-
Automaton patternAutomaton = new RegExp("\\.test-~(one.*)").toAutomaton();
626-
assertTrue(
627-
new CharacterRunAutomaton(Operations.determinize(patternAutomaton, Operations.DEFAULT_DETERMINIZE_WORK_LIMIT)).run(
628-
".test-~(one.*)"
629-
)
630-
);
631-
// TODO remove this smoke test ^^^ once the issue is fixed
632-
633618
systemIndexDescriptors.add(SystemIndexDescriptorUtils.createUnmanaged(".test-~(one*)", "test"));
634619
systemIndexDescriptors.add(SystemIndexDescriptorUtils.createUnmanaged(".pattern-test*", "test-1"));
635620

0 commit comments

Comments
 (0)