Skip to content

Commit c452ee8

Browse files
committed
Force enable index.use_time_series_doc_values_format_large_binary_block_size
1 parent a75fe13 commit c452ee8

3 files changed

Lines changed: 2 additions & 5 deletions

File tree

server/src/main/java/org/elasticsearch/common/settings/IndexScopedSettings.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,7 @@ public final class IndexScopedSettings extends AbstractScopedSettings {
257257
if (IndexSettings.DISABLE_SEQUENCE_NUMBERS_FEATURE_FLAG) {
258258
settings.add(IndexSettings.DISABLE_SEQUENCE_NUMBERS);
259259
}
260-
if (IndexSettings.ALLOW_LARGE_BINARY_BLOCK_SIZE.isEnabled()) {
261-
settings.add(IndexSettings.USE_TIME_SERIES_DOC_VALUES_FORMAT_LARGE_BINARY_BLOCK_SIZE);
262-
}
260+
settings.add(IndexSettings.USE_TIME_SERIES_DOC_VALUES_FORMAT_LARGE_BINARY_BLOCK_SIZE);
263261
settings.add(IndexSettings.INDEX_MAPPING_EXCLUDE_SOURCE_VECTORS_SETTING);
264262
BUILT_IN_INDEX_SETTINGS = Collections.unmodifiableSet(settings);
265263
};

server/src/main/java/org/elasticsearch/index/IndexSettings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ public Iterator<Setting<?>> settings() {
891891
public static final FeatureFlag ALLOW_LARGE_BINARY_BLOCK_SIZE = new FeatureFlag("allow_large_binary_block_size");
892892
public static final Setting<Boolean> USE_TIME_SERIES_DOC_VALUES_FORMAT_LARGE_BINARY_BLOCK_SIZE = Setting.boolSetting(
893893
"index.use_time_series_doc_values_format_large_binary_block_size",
894-
false,
894+
true,
895895
Property.IndexScope,
896896
Property.Final
897897
);

server/src/main/java/org/elasticsearch/index/codec/tsdb/es819/TSDBDocValuesFormatFactory.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public static DocValuesFormat createDocValuesFormat(
4646
if (indexCreatedVersion.onOrAfter(IndexVersions.TIME_SERIES_DOC_VALUES_FORMAT_VERSION_3)) {
4747
if (useLargeBinaryBlockSize) {
4848
// At this stage, we don't need large numeric blocks if large binary block is requested:
49-
assert useLargeNumericBlockSize == false;
5049
return ES_819_3_TSDB_DOC_VALUES_FORMAT_LARGE_BINARY_BLOCK;
5150
}
5251
return useLargeNumericBlockSize ? ES_819_3_TSDB_DOC_VALUES_FORMAT_LARGE_NUMERIC_BLOCK : ES_819_3_TSDB_DOC_VALUES_FORMAT;

0 commit comments

Comments
 (0)