@@ -124,10 +124,10 @@ public class StoreTests extends OpenSearchTestCase {
124124 Settings .builder ().put (IndexMetadata .SETTING_VERSION_CREATED , org .opensearch .Version .CURRENT ).build ()
125125 );
126126
127- IndexSettings SEGMENT_REPLICATION_INDEX_SETTINGS = new IndexSettings (INDEX_SETTINGS . getIndexMetadata (), Settings . builder ()
128- . put ( INDEX_SETTINGS .getSettings ())
129- . put (IndexMetadata .SETTING_REPLICATION_TYPE , ReplicationType .SEGMENT )
130- . build () );
127+ IndexSettings SEGMENT_REPLICATION_INDEX_SETTINGS = new IndexSettings (
128+ INDEX_SETTINGS .getIndexMetadata (),
129+ Settings . builder (). put (INDEX_SETTINGS . getSettings ()). put ( IndexMetadata .SETTING_REPLICATION_TYPE , ReplicationType .SEGMENT ). build ( )
130+ );
131131
132132 private static final Version MIN_SUPPORTED_LUCENE_VERSION = org .opensearch .Version .CURRENT
133133 .minimumIndexCompatibilityVersion ().luceneVersion ;
@@ -1160,7 +1160,12 @@ public void testGetMetadataWithSegmentInfos() throws IOException {
11601160
11611161 public void testCleanupAndPreserveLatestCommitPoint () throws IOException {
11621162 final ShardId shardId = new ShardId ("index" , "_na_" , 1 );
1163- Store store = new Store (shardId , SEGMENT_REPLICATION_INDEX_SETTINGS , StoreTests .newDirectory (random ()), new DummyShardLock (shardId ));
1163+ Store store = new Store (
1164+ shardId ,
1165+ SEGMENT_REPLICATION_INDEX_SETTINGS ,
1166+ StoreTests .newDirectory (random ()),
1167+ new DummyShardLock (shardId )
1168+ );
11641169 commitRandomDocs (store );
11651170
11661171 Store .MetadataSnapshot commitMetadata = store .getMetadata ();
@@ -1178,7 +1183,12 @@ public void testCleanupAndPreserveLatestCommitPoint() throws IOException {
11781183
11791184 public void testGetSegmentMetadataMap () throws IOException {
11801185 final ShardId shardId = new ShardId ("index" , "_na_" , 1 );
1181- Store store = new Store (shardId , SEGMENT_REPLICATION_INDEX_SETTINGS , new NIOFSDirectory (createTempDir ()), new DummyShardLock (shardId ));
1186+ Store store = new Store (
1187+ shardId ,
1188+ SEGMENT_REPLICATION_INDEX_SETTINGS ,
1189+ new NIOFSDirectory (createTempDir ()),
1190+ new DummyShardLock (shardId )
1191+ );
11821192 store .createEmpty (Version .LATEST );
11831193 final Map <String , StoreFileMetadata > metadataSnapshot = store .getSegmentMetadataMap (store .readLastCommittedSegmentsInfo ());
11841194 // no docs indexed only _N file exists.
0 commit comments