Skip to content

Commit 26912f3

Browse files
committed
fix tests
1 parent 2fbc4ce commit 26912f3

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

server/src/internalClusterTest/java/org/elasticsearch/action/admin/indices/diskusage/IndexDiskUsageAnalyzerIT.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
import java.util.Collection;
3737
import java.util.List;
3838
import java.util.Optional;
39+
import java.util.Random;
3940
import java.util.Set;
4041
import java.util.concurrent.atomic.AtomicInteger;
4142
import java.util.stream.IntStream;
@@ -61,6 +62,13 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
6162
return plugins;
6263
}
6364

65+
@Override
66+
protected Settings.Builder setRandomIndexSettings(Random random, Settings.Builder builder) {
67+
var b = super.setRandomIndexSettings(random, builder);
68+
b.remove(IndexSettings.SEQ_NO_INDEX_OPTIONS_SETTING.getKey());
69+
return b;
70+
}
71+
6472
private static final Set<ShardId> failOnFlushShards = ConcurrentCollections.newConcurrentSet();
6573

6674
public static class EngineTestPlugin extends Plugin implements EnginePlugin {

x-pack/plugin/spatial/src/internalClusterTest/java/org/elasticsearch/xpack/spatial/SpatialDiskUsageIT.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.elasticsearch.common.bytes.BytesReference;
1616
import org.elasticsearch.common.settings.Settings;
1717
import org.elasticsearch.common.xcontent.support.XContentMapValues;
18+
import org.elasticsearch.index.IndexSettings;
1819
import org.elasticsearch.plugins.Plugin;
1920
import org.elasticsearch.test.ESIntegTestCase;
2021
import org.elasticsearch.xcontent.ToXContent;
@@ -30,6 +31,7 @@
3031
import java.util.Collection;
3132
import java.util.Collections;
3233
import java.util.Map;
34+
import java.util.Random;
3335

3436
import static org.hamcrest.Matchers.equalTo;
3537
import static org.hamcrest.Matchers.greaterThan;
@@ -41,6 +43,13 @@ protected Collection<Class<? extends Plugin>> nodePlugins() {
4143
return Collections.singleton(LocalStateSpatialPlugin.class);
4244
}
4345

46+
@Override
47+
protected Settings.Builder setRandomIndexSettings(Random random, Settings.Builder builder) {
48+
var b = super.setRandomIndexSettings(random, builder);
49+
b.remove(IndexSettings.SEQ_NO_INDEX_OPTIONS_SETTING.getKey());
50+
return b;
51+
}
52+
4453
public void testGeoShape() throws Exception {
4554
doTestSpatialField(GeoShapeWithDocValuesFieldMapper.CONTENT_TYPE);
4655
}

0 commit comments

Comments
 (0)