|
@@ -230,7 +230,7 @@ public abstract class EngineTestCase extends ESTestCase {
|
|
|
}
|
|
|
|
|
|
public EngineConfig copy(EngineConfig config, LongSupplier globalCheckpointSupplier) {
|
|
|
- return new EngineConfig(config.getShardId(), config.getAllocationId(), config.getThreadPool(), config.getIndexSettings(),
|
|
|
+ return new EngineConfig(config.getShardId(), config.getThreadPool(), config.getIndexSettings(),
|
|
|
config.getWarmer(), config.getStore(), config.getMergePolicy(), config.getAnalyzer(), config.getSimilarity(),
|
|
|
new CodecService(null, logger), config.getEventListener(), config.getQueryCache(), config.getQueryCachingPolicy(),
|
|
|
config.getTranslogConfig(), config.getFlushMergesAfter(),
|
|
@@ -240,7 +240,7 @@ public abstract class EngineTestCase extends ESTestCase {
|
|
|
}
|
|
|
|
|
|
public EngineConfig copy(EngineConfig config, Analyzer analyzer) {
|
|
|
- return new EngineConfig(config.getShardId(), config.getAllocationId(), config.getThreadPool(), config.getIndexSettings(),
|
|
|
+ return new EngineConfig(config.getShardId(), config.getThreadPool(), config.getIndexSettings(),
|
|
|
config.getWarmer(), config.getStore(), config.getMergePolicy(), analyzer, config.getSimilarity(),
|
|
|
new CodecService(null, logger), config.getEventListener(), config.getQueryCache(), config.getQueryCachingPolicy(),
|
|
|
config.getTranslogConfig(), config.getFlushMergesAfter(),
|
|
@@ -250,7 +250,7 @@ public abstract class EngineTestCase extends ESTestCase {
|
|
|
}
|
|
|
|
|
|
public EngineConfig copy(EngineConfig config, MergePolicy mergePolicy) {
|
|
|
- return new EngineConfig(config.getShardId(), config.getAllocationId(), config.getThreadPool(), config.getIndexSettings(),
|
|
|
+ return new EngineConfig(config.getShardId(), config.getThreadPool(), config.getIndexSettings(),
|
|
|
config.getWarmer(), config.getStore(), mergePolicy, config.getAnalyzer(), config.getSimilarity(),
|
|
|
new CodecService(null, logger), config.getEventListener(), config.getQueryCache(), config.getQueryCachingPolicy(),
|
|
|
config.getTranslogConfig(), config.getFlushMergesAfter(),
|
|
@@ -683,7 +683,6 @@ public abstract class EngineTestCase extends ESTestCase {
|
|
|
}
|
|
|
return new EngineConfig(
|
|
|
shardId,
|
|
|
- allocationId.getId(),
|
|
|
threadPool,
|
|
|
indexSettings,
|
|
|
null,
|
|
@@ -713,7 +712,7 @@ public abstract class EngineTestCase extends ESTestCase {
|
|
|
Settings.builder().put(config.getIndexSettings().getSettings())
|
|
|
.put(IndexSettings.INDEX_SOFT_DELETES_SETTING.getKey(), true).build());
|
|
|
TranslogConfig translogConfig = new TranslogConfig(shardId, translogPath, indexSettings, BigArrays.NON_RECYCLING_INSTANCE);
|
|
|
- return new EngineConfig(config.getShardId(), config.getAllocationId(), config.getThreadPool(),
|
|
|
+ return new EngineConfig(config.getShardId(), config.getThreadPool(),
|
|
|
indexSettings, config.getWarmer(), store, config.getMergePolicy(), config.getAnalyzer(), config.getSimilarity(),
|
|
|
new CodecService(null, logger), config.getEventListener(), config.getQueryCache(), config.getQueryCachingPolicy(),
|
|
|
translogConfig, config.getFlushMergesAfter(), config.getExternalRefreshListener(),
|