File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
server/src/internalClusterTest/java/org/opensearch/cluster/metadata Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 14
14
import org .opensearch .indices .replication .common .ReplicationType ;
15
15
import org .opensearch .test .OpenSearchIntegTestCase ;
16
16
17
+ import java .nio .file .Path ;
18
+
17
19
public class AutoExpandWithSearchReplicaIT extends OpenSearchIntegTestCase {
18
20
19
21
private static final String INDEX_NAME = "test-idx-1" ;
22
+ private static final String REPOSITORY_NAME = "test-remote-store-repo" ;
23
+
24
+ private Path absolutePath ;
20
25
21
26
@ Override
22
27
protected Settings featureFlagSettings () {
23
28
return Settings .builder ().put (super .featureFlagSettings ()).put (FeatureFlags .READER_WRITER_SPLIT_EXPERIMENTAL , true ).build ();
24
29
}
25
30
31
+ @ Override
32
+ protected Settings nodeSettings (int nodeOrdinal ) {
33
+ if (absolutePath == null ) {
34
+ absolutePath = randomRepoPath ().toAbsolutePath ();
35
+ }
36
+ return Settings .builder ()
37
+ .put (super .nodeSettings (nodeOrdinal ))
38
+ .put (remoteStoreClusterSettings (REPOSITORY_NAME , absolutePath ))
39
+ .build ();
40
+ }
41
+
26
42
public void testEnableAutoExpandWhenSearchReplicaActive () {
27
43
internalCluster ().startDataOnlyNodes (3 );
28
44
createIndex (
You can’t perform that action at this time.
0 commit comments