File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
server/src/internalClusterTest/java/org/elasticsearch/action/admin/indices/diskusage
x-pack/plugin/spatial/src/internalClusterTest/java/org/elasticsearch/xpack/spatial Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 3636import java .util .Collection ;
3737import java .util .List ;
3838import java .util .Optional ;
39+ import java .util .Random ;
3940import java .util .Set ;
4041import java .util .concurrent .atomic .AtomicInteger ;
4142import 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 {
Original file line number Diff line number Diff line change 1515import org .elasticsearch .common .bytes .BytesReference ;
1616import org .elasticsearch .common .settings .Settings ;
1717import org .elasticsearch .common .xcontent .support .XContentMapValues ;
18+ import org .elasticsearch .index .IndexSettings ;
1819import org .elasticsearch .plugins .Plugin ;
1920import org .elasticsearch .test .ESIntegTestCase ;
2021import org .elasticsearch .xcontent .ToXContent ;
3031import java .util .Collection ;
3132import java .util .Collections ;
3233import java .util .Map ;
34+ import java .util .Random ;
3335
3436import static org .hamcrest .Matchers .equalTo ;
3537import 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 }
You can’t perform that action at this time.
0 commit comments