Skip to content

Commit 84cc5ce

Browse files
committed
fix failure ITs
Signed-off-by: zane-neo <zaniu@amazon.com>
1 parent af24a54 commit 84cc5ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/org/opensearch/neuralsearch/search/query/HybridQueryPhaseSearcherTests.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import static org.mockito.Mockito.spy;
1616
import static org.mockito.Mockito.verify;
1717
import static org.mockito.Mockito.when;
18+
import static org.opensearch.cluster.metadata.IndexMetadata.TRANSLOG_METADATA_KEY;
1819
import static org.opensearch.index.mapper.SeqNoFieldMapper.PRIMARY_TERM_NAME;
1920
import static org.opensearch.index.remote.RemoteStoreEnums.PathType.HASHED_PREFIX;
2021
import static org.opensearch.neuralsearch.search.util.HybridSearchResultFormatUtil.isHybridQueryStartStopElement;
@@ -1025,7 +1026,9 @@ private static IndexMetadata getIndexMetadata() {
10251026
RemoteStoreEnums.PathType.NAME,
10261027
HASHED_PREFIX.name(),
10271028
RemoteStoreEnums.PathHashAlgorithm.NAME,
1028-
RemoteStoreEnums.PathHashAlgorithm.FNV_1A_BASE64.name()
1029+
RemoteStoreEnums.PathHashAlgorithm.FNV_1A_BASE64.name(),
1030+
TRANSLOG_METADATA_KEY,
1031+
"true"
10291032
);
10301033
Settings idxSettings = Settings.builder()
10311034
.put(IndexMetadata.SETTING_VERSION_CREATED, Version.CURRENT)

0 commit comments

Comments
 (0)