From 1c56334f11f38eb74d5ca41fc0859592ef241e00 Mon Sep 17 00:00:00 2001 From: gashutos Date: Thu, 14 Sep 2023 16:30:44 +0530 Subject: [PATCH] AOS 2.7 upgrade issue 2 --- server/src/main/java/org/opensearch/index/IndexSettings.java | 4 +--- .../org/opensearch/index/fielddata/IndexNumericFieldData.java | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/server/src/main/java/org/opensearch/index/IndexSettings.java b/server/src/main/java/org/opensearch/index/IndexSettings.java index b80ce6f2694ca..31757d87bbf46 100644 --- a/server/src/main/java/org/opensearch/index/IndexSettings.java +++ b/server/src/main/java/org/opensearch/index/IndexSettings.java @@ -823,9 +823,7 @@ public IndexSettings(final IndexMetadata indexMetadata, final Settings nodeSetti maxFullFlushMergeWaitTime = scopedSettings.get(INDEX_MERGE_ON_FLUSH_MAX_FULL_FLUSH_MERGE_WAIT_TIME); mergeOnFlushEnabled = scopedSettings.get(INDEX_MERGE_ON_FLUSH_ENABLED); setMergeOnFlushPolicy(scopedSettings.get(INDEX_MERGE_ON_FLUSH_POLICY)); - System.out.println("CHETAN LOGSSSS " +IndexMetadata.SETTING_INDEX_VERSION_CREATED.get(settings)); - widenIndexSortType = IndexMetadata.SETTING_INDEX_VERSION_CREATED.get(settings).onOrBefore(LegacyESVersion.V_2_7_1); - System.out.println("CHETAN LOGSSSS " +widenIndexSortType); + widenIndexSortType = IndexMetadata.SETTING_INDEX_VERSION_CREATED.get(settings).onOrBefore(LegacyESVersion.V_2_6_1); scopedSettings.addSettingsUpdateConsumer(MergePolicyConfig.INDEX_COMPOUND_FORMAT_SETTING, mergePolicyConfig::setNoCFSRatio); scopedSettings.addSettingsUpdateConsumer( diff --git a/server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java b/server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java index 30834f3978f06..97ffe465c9d55 100644 --- a/server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java +++ b/server/src/main/java/org/opensearch/index/fielddata/IndexNumericFieldData.java @@ -229,7 +229,6 @@ private XFieldComparatorSource comparatorSource( case DATE_NANOSECONDS: return dateNanosComparatorSource(missingValue, sortMode, nested); case LONG: - System.out.println("CHETAN logs LONG"); return new LongValuesComparatorSource(this, missingValue, sortMode, nested); default: if(getNumericType().sortFieldType == SortField.Type.LONG) {