Skip to content

Commit 58bae1a

Browse files
author
Swetha Guptha
committed
Merge remote-tracking branch 'origin/2.x' into backport-15131-to-2.x
2 parents 08810f3 + 1074c71 commit 58bae1a

File tree

92 files changed

+3627
-428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+3627
-428
lines changed

.github/workflows/assemble.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ jobs:
3232
if: runner.os == 'macos'
3333
continue-on-error: true
3434
run: |
35-
brew install docker colima coreutils
35+
# Force QEMU 9.0.2 usage
36+
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/f1a9cf104a9a51779c7a532b658c490f69974839/Formula/q/qemu.rb > qemu.rb
37+
brew install qemu.rb
38+
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=1 HOMEBREW_NO_AUTO_UPDATE=1 brew install docker colima coreutils
3639
gtimeout 15m colima start
3740
shell: bash
3841
- name: Run Gradle (assemble)

.github/workflows/version.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
sed -i "s/CURRENT = $CURRENT_VERSION_UNDERSCORE;/CURRENT = $NEXT_VERSION_UNDERSCORE;/g" libs/core/src/main/java/org/opensearch/Version.java
6060
6161
- name: Create Pull Request
62-
uses: peter-evans/create-pull-request@v6
62+
uses: peter-evans/create-pull-request@v7
6363
with:
6464
token: ${{ steps.github_app_token.outputs.token }}
6565
base: ${{ env.BASE }}
@@ -86,7 +86,7 @@ jobs:
8686
sed -i "s/public static final Version $CURRENT_VERSION_UNDERSCORE = new Version(\([[:digit:]]\+\)\(.*\));/\0\n public static final Version $NEXT_VERSION_UNDERSCORE = new Version($NEXT_VERSION_ID\2);/g" libs/core/src/main/java/org/opensearch/Version.java
8787
8888
- name: Create Pull Request
89-
uses: peter-evans/create-pull-request@v6
89+
uses: peter-evans/create-pull-request@v7
9090
with:
9191
token: ${{ steps.github_app_token.outputs.token }}
9292
base: ${{ env.BASE_X }}
@@ -114,7 +114,7 @@ jobs:
114114
sed -i "s/public static final Version $CURRENT_VERSION_UNDERSCORE = new Version(\([[:digit:]]\+\)\(.*\));/\0\n public static final Version $NEXT_VERSION_UNDERSCORE = new Version($NEXT_VERSION_ID\2);/g" libs/core/src/main/java/org/opensearch/Version.java
115115
116116
- name: Create Pull Request
117-
uses: peter-evans/create-pull-request@v6
117+
uses: peter-evans/create-pull-request@v7
118118
with:
119119
token: ${{ steps.github_app_token.outputs.token }}
120120
base: main

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55

66
## [Unreleased 2.x]
77
### Added
8+
- Add path prefix support to hashed prefix snapshots ([#15664](https://github.com/opensearch-project/OpenSearch/pull/15664))
9+
- [Workload Management] QueryGroup resource cancellation framework changes ([#15651](https://github.com/opensearch-project/OpenSearch/pull/15651))
810

911
### Dependencies
1012
- Bump `com.azure:azure-identity` from 1.13.0 to 1.13.2 ([#15578](https://github.com/opensearch-project/OpenSearch/pull/15578))
13+
- Bump `protobuf` from 3.22.3 to 3.25.4 ([#15684](https://github.com/opensearch-project/OpenSearch/pull/15684))
14+
- Bump `peter-evans/create-pull-request` from 6 to 7 ([#15863](https://github.com/opensearch-project/OpenSearch/pull/15863))
15+
- Bump `com.nimbusds:oauth2-oidc-sdk` from 11.9.1 to 11.19.1 ([#15862](https://github.com/opensearch-project/OpenSearch/pull/15862))
1116

1217
### Changed
1318

@@ -17,6 +22,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
1722
### Removed
1823

1924
### Fixed
25+
- Fix wildcard query containing escaped character ([#15737](https://github.com/opensearch-project/OpenSearch/pull/15737))
2026

2127
### Security
2228

buildSrc/version.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ woodstox = 6.4.0
2020
kotlin = 1.7.10
2121
antlr4 = 4.13.1
2222
guava = 32.1.1-jre
23-
protobuf = 3.22.3
23+
protobuf = 3.25.4
2424
jakarta_annotation = 1.3.5
2525
google_http_client = 1.44.1
2626
tdigest = 3.2

gradle/wrapper/gradle-wrapper.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
distributionBase=GRADLE_USER_HOME
1313
distributionPath=wrapper/dists
14-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-all.zip
14+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-all.zip
1515
zipStoreBase=GRADLE_USER_HOME
1616
zipStorePath=wrapper/dists
17-
distributionSha256Sum=682b4df7fe5accdca84a4d1ef6a3a6ab096b3efd5edf7de2bd8c758d95a93703
17+
distributionSha256Sum=fdfca5dbc2834f0ece5020465737538e5ba679deeff5ab6c09621d67f8bb1a15

plugins/repository-azure/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ dependencies {
6262
api 'com.microsoft.azure:msal4j-persistence-extension:1.3.0'
6363
api "net.java.dev.jna:jna-platform:${versions.jna}"
6464
api 'com.microsoft.azure:msal4j:1.17.0'
65-
api 'com.nimbusds:oauth2-oidc-sdk:11.9.1'
65+
api 'com.nimbusds:oauth2-oidc-sdk:11.19.1'
6666
api 'com.nimbusds:nimbus-jose-jwt:9.40'
6767
api 'com.nimbusds:content-type:2.3'
6868
api 'com.nimbusds:lang-tag:1.7'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
58db85a807a56ae76baffa519772271ad5808195

plugins/repository-azure/licenses/oauth2-oidc-sdk-11.9.1.jar.sha1

-1
This file was deleted.

plugins/repository-gcs/build.gradle

-3
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ thirdPartyAudit {
148148
'com.google.appengine.api.urlfetch.HTTPResponse',
149149
'com.google.appengine.api.urlfetch.URLFetchService',
150150
'com.google.appengine.api.urlfetch.URLFetchServiceFactory',
151-
'com.google.protobuf.MapFieldBuilder',
152-
'com.google.protobuf.MapFieldBuilder$Converter',
153-
'com.google.protobuf.MapFieldReflectionAccessor',
154151
'com.google.protobuf.util.JsonFormat',
155152
'com.google.protobuf.util.JsonFormat$Parser',
156153
'com.google.protobuf.util.JsonFormat$Printer',

release-notes/opensearch.release-notes-2.17.0.md

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@
5151
- Relax the join validation for Remote State publication ([#15471](https://github.com/opensearch-project/OpenSearch/pull/15471))
5252
- Reset DiscoveryNodes in all transport node actions request ([#15131](https://github.com/opensearch-project/OpenSearch/pull/15131))
5353
- MultiTermQueries in keyword fields now default to `indexed` approach and gated behind cluster setting ([#15637](https://github.com/opensearch-project/OpenSearch/pull/15637))
54+
- Static RemotePublication setting added, removed experimental feature flag ([#15478](https://github.com/opensearch-project/OpenSearch/pull/15478))
55+
- [Remote Publication] Upload incremental cluster state on master re-election ([#15145](https://github.com/opensearch-project/OpenSearch/pull/15145))
5456

5557
### Dependencies
5658
- Bump `netty` from 4.1.111.Final to 4.1.112.Final ([#15081](https://github.com/opensearch-project/OpenSearch/pull/15081))

server/licenses/protobuf-java-3.22.3.jar.sha1

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
43fcb86e4a411516c7fc681450f1516de0b862a2

server/src/internalClusterTest/java/org/opensearch/gateway/remote/RemoteClusterStateCleanupManagerIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
import java.util.concurrent.TimeUnit;
3636
import java.util.concurrent.atomic.AtomicLong;
3737

38-
import static org.opensearch.common.util.FeatureFlags.REMOTE_PUBLICATION_EXPERIMENTAL;
3938
import static org.opensearch.gateway.remote.RemoteClusterStateCleanupManager.CLUSTER_STATE_CLEANUP_INTERVAL_DEFAULT;
4039
import static org.opensearch.gateway.remote.RemoteClusterStateCleanupManager.REMOTE_CLUSTER_STATE_CLEANUP_INTERVAL_SETTING;
4140
import static org.opensearch.gateway.remote.RemoteClusterStateCleanupManager.RETAINED_MANIFESTS;
4241
import static org.opensearch.gateway.remote.RemoteClusterStateCleanupManager.SKIP_CLEANUP_STATE_CHANGES;
4342
import static org.opensearch.gateway.remote.RemoteClusterStateService.REMOTE_CLUSTER_STATE_ENABLED_SETTING;
43+
import static org.opensearch.gateway.remote.RemoteClusterStateService.REMOTE_PUBLICATION_SETTING_KEY;
4444
import static org.opensearch.gateway.remote.RemoteUploadStats.REMOTE_UPLOAD;
4545
import static org.opensearch.gateway.remote.routingtable.RemoteIndexRoutingTable.INDEX_ROUTING_TABLE;
4646
import static org.opensearch.indices.IndicesService.CLUSTER_DEFAULT_INDEX_REFRESH_INTERVAL_SETTING;
@@ -189,7 +189,7 @@ public void testRemoteCleanupDeleteStaleIndexRoutingFiles() throws Exception {
189189
RemoteStoreEnums.PathType.HASHED_PREFIX.toString()
190190
)
191191
.put("node.attr." + REMOTE_STORE_ROUTING_TABLE_REPOSITORY_NAME_ATTRIBUTE_KEY, REMOTE_ROUTING_TABLE_REPO)
192-
.put(REMOTE_PUBLICATION_EXPERIMENTAL, true);
192+
.put(REMOTE_PUBLICATION_SETTING_KEY, true);
193193

194194
int shardCount = randomIntBetween(1, 2);
195195
int replicaCount = 1;

server/src/internalClusterTest/java/org/opensearch/gateway/remote/RemoteRoutingTableServiceIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
import java.util.concurrent.TimeUnit;
3838
import java.util.concurrent.atomic.AtomicInteger;
3939

40-
import static org.opensearch.common.util.FeatureFlags.REMOTE_PUBLICATION_EXPERIMENTAL;
4140
import static org.opensearch.gateway.remote.RemoteClusterStateService.REMOTE_CLUSTER_STATE_ENABLED_SETTING;
41+
import static org.opensearch.gateway.remote.RemoteClusterStateService.REMOTE_PUBLICATION_SETTING_KEY;
4242
import static org.opensearch.gateway.remote.routingtable.RemoteIndexRoutingTable.INDEX_ROUTING_TABLE;
4343
import static org.opensearch.indices.IndicesService.CLUSTER_DEFAULT_INDEX_REFRESH_INTERVAL_SETTING;
4444
import static org.opensearch.node.remotestore.RemoteStoreNodeAttribute.REMOTE_STORE_ROUTING_TABLE_REPOSITORY_NAME_ATTRIBUTE_KEY;
@@ -66,7 +66,7 @@ protected Settings nodeSettings(int nodeOrdinal) {
6666
RemoteStoreEnums.PathType.HASHED_PREFIX.toString()
6767
)
6868
.put("node.attr." + REMOTE_STORE_ROUTING_TABLE_REPOSITORY_NAME_ATTRIBUTE_KEY, REMOTE_ROUTING_TABLE_REPO)
69-
.put(REMOTE_PUBLICATION_EXPERIMENTAL, true)
69+
.put(REMOTE_PUBLICATION_SETTING_KEY, true)
7070
.put(
7171
RemoteClusterStateService.REMOTE_CLUSTER_STATE_CHECKSUM_VALIDATION_MODE_SETTING.getKey(),
7272
RemoteClusterStateService.RemoteClusterStateValidationMode.FAILURE

server/src/internalClusterTest/java/org/opensearch/gateway/remote/RemoteStatePublicationIT.java

+5-12
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import org.opensearch.client.Client;
1616
import org.opensearch.common.blobstore.BlobPath;
1717
import org.opensearch.common.settings.Settings;
18-
import org.opensearch.common.util.FeatureFlags;
1918
import org.opensearch.discovery.DiscoveryStats;
2019
import org.opensearch.gateway.remote.ClusterMetadataManifest.UploadedIndexMetadata;
2120
import org.opensearch.gateway.remote.model.RemoteClusterMetadataManifest;
@@ -41,6 +40,7 @@
4140

4241
import static org.opensearch.gateway.remote.RemoteClusterStateAttributesManager.DISCOVERY_NODES;
4342
import static org.opensearch.gateway.remote.RemoteClusterStateService.REMOTE_CLUSTER_STATE_ENABLED_SETTING;
43+
import static org.opensearch.gateway.remote.RemoteClusterStateService.REMOTE_PUBLICATION_SETTING_KEY;
4444
import static org.opensearch.gateway.remote.RemoteClusterStateUtils.DELIMITER;
4545
import static org.opensearch.gateway.remote.model.RemoteClusterBlocks.CLUSTER_BLOCKS;
4646
import static org.opensearch.gateway.remote.model.RemoteCoordinationMetadata.COORDINATION_METADATA;
@@ -62,27 +62,19 @@ public class RemoteStatePublicationIT extends RemoteStoreBaseIntegTestCase {
6262
private static final String REMOTE_STATE_PREFIX = "!";
6363
private static final String REMOTE_ROUTING_PREFIX = "_";
6464
private boolean isRemoteStateEnabled = true;
65-
private String isRemotePublicationEnabled = "true";
65+
private boolean isRemotePublicationEnabled = true;
6666
private boolean hasRemoteStateCharPrefix;
6767
private boolean hasRemoteRoutingCharPrefix;
6868

6969
@Before
7070
public void setup() {
7171
asyncUploadMockFsRepo = false;
7272
isRemoteStateEnabled = true;
73-
isRemotePublicationEnabled = "true";
73+
isRemotePublicationEnabled = true;
7474
hasRemoteStateCharPrefix = randomBoolean();
7575
hasRemoteRoutingCharPrefix = randomBoolean();
7676
}
7777

78-
@Override
79-
protected Settings featureFlagSettings() {
80-
return Settings.builder()
81-
.put(super.featureFlagSettings())
82-
.put(FeatureFlags.REMOTE_PUBLICATION_EXPERIMENTAL, isRemotePublicationEnabled)
83-
.build();
84-
}
85-
8678
@Override
8779
protected Settings nodeSettings(int nodeOrdinal) {
8880
String routingTableRepoName = "remote-routing-repo";
@@ -100,13 +92,15 @@ protected Settings nodeSettings(int nodeOrdinal) {
10092
return Settings.builder()
10193
.put(super.nodeSettings(nodeOrdinal))
10294
.put(REMOTE_CLUSTER_STATE_ENABLED_SETTING.getKey(), isRemoteStateEnabled)
95+
.put(REMOTE_PUBLICATION_SETTING_KEY, isRemotePublicationEnabled)
10396
.put("node.attr." + REMOTE_STORE_ROUTING_TABLE_REPOSITORY_NAME_ATTRIBUTE_KEY, routingTableRepoName)
10497
.put(routingTableRepoTypeAttributeKey, ReloadableFsRepository.TYPE)
10598
.put(routingTableRepoSettingsAttributeKeyPrefix + "location", segmentRepoPath)
10699
.put(
107100
RemoteClusterStateService.REMOTE_CLUSTER_STATE_CHECKSUM_VALIDATION_MODE_SETTING.getKey(),
108101
RemoteClusterStateService.RemoteClusterStateValidationMode.FAILURE
109102
)
103+
.put(REMOTE_PUBLICATION_SETTING_KEY, isRemotePublicationEnabled)
110104
.put(
111105
RemoteClusterStateService.CLUSTER_REMOTE_STORE_STATE_PATH_PREFIX.getKey(),
112106
hasRemoteStateCharPrefix ? REMOTE_STATE_PREFIX : ""
@@ -224,7 +218,6 @@ public void testRemotePublicationDownloadStats() {
224218
.get();
225219

226220
assertDataNodeDownloadStats(nodesStatsResponseDataNode);
227-
228221
}
229222

230223
private void assertDataNodeDownloadStats(NodesStatsResponse nodesStatsResponse) {

server/src/internalClusterTest/java/org/opensearch/remotestore/BaseRemoteStoreRestoreIT.java

-25
Original file line numberDiff line numberDiff line change
@@ -76,29 +76,4 @@ protected void verifyRestoredData(Map<String, Long> indexStats, String indexName
7676
protected void verifyRestoredData(Map<String, Long> indexStats, String indexName) throws Exception {
7777
verifyRestoredData(indexStats, indexName, true);
7878
}
79-
80-
public void prepareCluster(int numClusterManagerNodes, int numDataOnlyNodes, String indices, int replicaCount, int shardCount) {
81-
prepareCluster(numClusterManagerNodes, numDataOnlyNodes, indices, replicaCount, shardCount, Settings.EMPTY);
82-
}
83-
84-
public void prepareCluster(
85-
int numClusterManagerNodes,
86-
int numDataOnlyNodes,
87-
String indices,
88-
int replicaCount,
89-
int shardCount,
90-
Settings settings
91-
) {
92-
prepareCluster(numClusterManagerNodes, numDataOnlyNodes, settings);
93-
for (String index : indices.split(",")) {
94-
createIndex(index, remoteStoreIndexSettings(replicaCount, shardCount));
95-
ensureYellowAndNoInitializingShards(index);
96-
ensureGreen(index);
97-
}
98-
}
99-
100-
public void prepareCluster(int numClusterManagerNodes, int numDataOnlyNodes, Settings settings) {
101-
internalCluster().startClusterManagerOnlyNodes(numClusterManagerNodes, settings);
102-
internalCluster().startDataOnlyNodes(numDataOnlyNodes, settings);
103-
}
10479
}

server/src/internalClusterTest/java/org/opensearch/remotestore/RemoteStoreBaseIntegTestCase.java

+8-9
Original file line numberDiff line numberDiff line change
@@ -351,13 +351,7 @@ protected void restore(boolean restoreAllShards, String... indices) {
351351
}
352352

353353
protected void prepareCluster(int numClusterManagerNodes, int numDataOnlyNodes, String indices, int replicaCount, int shardCount) {
354-
internalCluster().startClusterManagerOnlyNodes(numClusterManagerNodes);
355-
internalCluster().startDataOnlyNodes(numDataOnlyNodes);
356-
for (String index : indices.split(",")) {
357-
createIndex(index, remoteStoreIndexSettings(replicaCount, shardCount));
358-
ensureYellowAndNoInitializingShards(index);
359-
ensureGreen(index);
360-
}
354+
prepareCluster(numClusterManagerNodes, numDataOnlyNodes, indices, replicaCount, shardCount, Settings.EMPTY);
361355
}
362356

363357
protected void prepareCluster(
@@ -368,11 +362,16 @@ protected void prepareCluster(
368362
int shardCount,
369363
Settings settings
370364
) {
371-
internalCluster().startClusterManagerOnlyNodes(numClusterManagerNodes, settings);
372-
internalCluster().startDataOnlyNodes(numDataOnlyNodes, settings);
365+
prepareCluster(numClusterManagerNodes, numDataOnlyNodes, settings);
373366
for (String index : indices.split(",")) {
374367
createIndex(index, remoteStoreIndexSettings(replicaCount, shardCount));
368+
ensureYellowAndNoInitializingShards(index);
375369
ensureGreen(index);
376370
}
377371
}
372+
373+
protected void prepareCluster(int numClusterManagerNodes, int numDataOnlyNodes, Settings settings) {
374+
internalCluster().startClusterManagerOnlyNodes(numClusterManagerNodes, settings);
375+
internalCluster().startDataOnlyNodes(numDataOnlyNodes, settings);
376+
}
378377
}

server/src/internalClusterTest/java/org/opensearch/snapshots/CloneSnapshotIT.java

+7-8
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
import java.util.List;
6565
import java.util.concurrent.ExecutionException;
6666

67-
import static org.opensearch.remotestore.RemoteStoreBaseIntegTestCase.remoteStoreClusterSettings;
6867
import static org.opensearch.test.hamcrest.OpenSearchAssertions.assertAcked;
6968
import static org.hamcrest.Matchers.containsString;
7069
import static org.hamcrest.Matchers.hasSize;
@@ -145,7 +144,7 @@ public void testShardClone() throws Exception {
145144
}
146145

147146
public void testCloneSnapshotIndex() throws Exception {
148-
internalCluster().startClusterManagerOnlyNode();
147+
internalCluster().startClusterManagerOnlyNode(LARGE_SNAPSHOT_POOL_SETTINGS);
149148
internalCluster().startDataOnlyNode();
150149
final String repoName = "repo-name";
151150
createRepository(repoName, "fs");
@@ -336,7 +335,7 @@ public void testClonePreventsSnapshotDelete() throws Exception {
336335
indexRandomDocs(indexName, randomIntBetween(20, 100));
337336

338337
final String targetSnapshot = "target-snapshot";
339-
blockNodeOnAnyFiles(repoName, clusterManagerName);
338+
blockClusterManagerOnWriteIndexFile(repoName);
340339
final ActionFuture<AcknowledgedResponse> cloneFuture = startClone(repoName, sourceSnapshot, targetSnapshot, indexName);
341340
waitForBlock(clusterManagerName, repoName, TimeValue.timeValueSeconds(30L));
342341
assertFalse(cloneFuture.isDone());
@@ -444,7 +443,7 @@ public void testLongRunningSnapshotAllowsConcurrentClone() throws Exception {
444443
}
445444

446445
public void testDeletePreventsClone() throws Exception {
447-
final String clusterManagerName = internalCluster().startClusterManagerOnlyNode();
446+
final String clusterManagerName = internalCluster().startClusterManagerOnlyNode(LARGE_SNAPSHOT_POOL_SETTINGS);
448447
internalCluster().startDataOnlyNode();
449448
final String repoName = "repo-name";
450449
createRepository(repoName, "mock");
@@ -457,7 +456,7 @@ public void testDeletePreventsClone() throws Exception {
457456
indexRandomDocs(indexName, randomIntBetween(20, 100));
458457

459458
final String targetSnapshot = "target-snapshot";
460-
blockNodeOnAnyFiles(repoName, clusterManagerName);
459+
blockClusterManagerOnWriteIndexFile(repoName);
461460
final ActionFuture<AcknowledgedResponse> deleteFuture = startDeleteSnapshot(repoName, sourceSnapshot);
462461
waitForBlock(clusterManagerName, repoName, TimeValue.timeValueSeconds(30L));
463462
assertFalse(deleteFuture.isDone());
@@ -609,7 +608,7 @@ public void testClusterManagerFailoverDuringCloneStep2() throws Exception {
609608

610609
public void testExceptionDuringShardClone() throws Exception {
611610
// large snapshot pool so blocked snapshot threads from cloning don't prevent concurrent snapshot finalizations
612-
internalCluster().startClusterManagerOnlyNodes(3, LARGE_SNAPSHOT_POOL_SETTINGS);
611+
internalCluster().startClusterManagerOnlyNode(LARGE_SNAPSHOT_POOL_SETTINGS);
613612
internalCluster().startDataOnlyNode();
614613
final String repoName = "test-repo";
615614
createRepository(repoName, "mock");
@@ -620,7 +619,7 @@ public void testExceptionDuringShardClone() throws Exception {
620619
createFullSnapshot(repoName, sourceSnapshot);
621620

622621
final String targetSnapshot = "target-snapshot";
623-
blockClusterManagerFromFinalizingSnapshotOnSnapFile(repoName);
622+
blockClusterManagerFromFinalizingSnapshotOnIndexFile(repoName);
624623
final ActionFuture<AcknowledgedResponse> cloneFuture = startCloneFromDataNode(repoName, sourceSnapshot, targetSnapshot, testIndex);
625624
awaitNumberOfSnapshotsInProgress(1);
626625
final String clusterManagerNode = internalCluster().getClusterManagerName();
@@ -698,7 +697,7 @@ public void testStartSnapshotWithSuccessfulShardClonePendingFinalization() throw
698697
}
699698

700699
public void testStartCloneWithSuccessfulShardClonePendingFinalization() throws Exception {
701-
final String clusterManagerName = internalCluster().startClusterManagerOnlyNode();
700+
final String clusterManagerName = internalCluster().startClusterManagerOnlyNode(LARGE_SNAPSHOT_POOL_SETTINGS);
702701
internalCluster().startDataOnlyNode();
703702
final String repoName = "test-repo";
704703
createRepository(repoName, "mock");

0 commit comments

Comments
 (0)