Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1447,12 +1447,11 @@ public void run() {
safeAwait(barrier);

final var snapshotName = randomIdentifier();
final var partialSnapshot = randomBoolean();
ActionFuture<CreateSnapshotResponse> snapshotFuture = clusterAdmin().prepareCreateSnapshot(
TEST_REQUEST_TIMEOUT,
repoName,
snapshotName
).setIndices(indexName).setWaitForCompletion(true).setPartial(partialSnapshot).execute();
).setIndices(indexName).setWaitForCompletion(true).setPartial(true).execute();

// we have currently blocked the start-snapshot task from running, and it will be followed by at least three blob uploads
// (segments_N, .cfe, .cfs), executed one-at-a-time because of throttling to the max threadpool size, so it's safe to let up to
Expand All @@ -1466,7 +1465,7 @@ public void run() {
assertFalse(snapshotFuture.isDone());

try {
if (partialSnapshot && randomBoolean()) {
if (randomBoolean()) {
logger.info("--> closing index [{}]", indexName);
safeGet(indicesAdmin().prepareClose(indexName).execute());
ensureGreen(indexName);
Expand Down