Skip to content

Commit

Permalink
remove leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
jimczi committed Nov 6, 2024
1 parent edd38bb commit b99f66f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,6 @@ public Iterator<Setting<?>> settings() {
Property.NodeScope
);

public static final Setting<Boolean> INDICES_RECOVERY_SOURCE_SYNTHETIC_LOGS_ENABLED_SETTING = Setting.boolSetting(
"index.recovery.recovery_source.synthetic.logs.enabled",
true,
Property.Dynamic,
Property.NodeScope
);

public static final ByteSizeValue DEFAULT_CHUNK_SIZE = new ByteSizeValue(512, ByteSizeUnit.KB);

private volatile ByteSizeValue maxBytesPerSec;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public void setUp() throws Exception {
index = new Index("index", "uuid");
shardId = new ShardId(index, 0);
primaryTerm.set(randomLongBetween(1, Long.MAX_VALUE));
indexMode = IndexMode.TIME_SERIES;// randomFrom(IndexMode.values());
indexMode = randomFrom(IndexMode.values());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import org.elasticsearch.core.Tuple;
import org.elasticsearch.index.IndexMode;
import org.elasticsearch.index.IndexSettings;
import org.elasticsearch.index.IndexVersion;
import org.elasticsearch.index.MapperTestUtils;
import org.elasticsearch.index.mapper.SourceFieldMapper;
import org.elasticsearch.license.MockLicenseState;
Expand Down Expand Up @@ -280,7 +279,6 @@ public void testGetAdditionalIndexSettingsDowngradeFromSyntheticSource() throws
.build();

Settings result = provider.getAdditionalIndexSettings(
IndexVersion.current(),
DataStream.getDefaultBackingIndexName(dataStreamName, 2),
dataStreamName,
null,
Expand All @@ -294,7 +292,6 @@ public void testGetAdditionalIndexSettingsDowngradeFromSyntheticSource() throws

syntheticSourceLicenseService.setSyntheticSourceFallback(true);
result = provider.getAdditionalIndexSettings(
IndexVersion.current(),
DataStream.getDefaultBackingIndexName(dataStreamName, 2),
dataStreamName,
null,
Expand All @@ -308,7 +305,6 @@ public void testGetAdditionalIndexSettingsDowngradeFromSyntheticSource() throws
assertThat(newMapperServiceCounter.get(), equalTo(0));

result = provider.getAdditionalIndexSettings(
IndexVersion.current(),
DataStream.getDefaultBackingIndexName(dataStreamName, 2),
dataStreamName,
IndexMode.TIME_SERIES,
Expand All @@ -322,7 +318,6 @@ public void testGetAdditionalIndexSettingsDowngradeFromSyntheticSource() throws
assertThat(newMapperServiceCounter.get(), equalTo(0));

result = provider.getAdditionalIndexSettings(
IndexVersion.current(),
DataStream.getDefaultBackingIndexName(dataStreamName, 2),
dataStreamName,
IndexMode.LOGSDB,
Expand Down Expand Up @@ -357,7 +352,6 @@ public void testGetAdditionalIndexSettingsDowngradeFromSyntheticSourceFileMatch(
);
Metadata metadata = mb.build();
Settings result = provider.getAdditionalIndexSettings(
IndexVersion.current(),
DataStream.getDefaultBackingIndexName(dataStreamName, 2),
dataStreamName,
null,
Expand All @@ -382,7 +376,6 @@ public void testGetAdditionalIndexSettingsDowngradeFromSyntheticSourceFileMatch(
metadata = mb.build();

result = provider.getAdditionalIndexSettings(
IndexVersion.current(),
DataStream.getDefaultBackingIndexName(dataStreamName, 2),
dataStreamName,
null,
Expand All @@ -396,7 +389,6 @@ public void testGetAdditionalIndexSettingsDowngradeFromSyntheticSourceFileMatch(
assertThat(newMapperServiceCounter.get(), equalTo(0));

result = provider.getAdditionalIndexSettings(
IndexVersion.current(),
DataStream.getDefaultBackingIndexName(dataStreamName, 2),
dataStreamName,
null,
Expand Down

0 comments on commit b99f66f

Please sign in to comment.