summaryrefslogtreecommitdiff
path: root/core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java')
-rw-r--r--core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java b/core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java
index 77a0514a14..45bd369a94 100644
--- a/core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java
+++ b/core/src/test/java/org/elasticsearch/snapshots/SharedClusterSnapshotRestoreIT.java
@@ -657,7 +657,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
.setType("mock").setSettings(
Settings.builder()
.put("location", randomRepoPath())
- .put("random", randomAsciiOfLength(10))
+ .put("random", randomAlphaOfLength(10))
.put("random_control_io_exception_rate", 0.2))
.setVerify(false));
@@ -707,7 +707,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
.setType("mock").setSettings(
Settings.builder()
.put("location", randomRepoPath())
- .put("random", randomAsciiOfLength(10))
+ .put("random", randomAlphaOfLength(10))
.put("random_data_file_io_exception_rate", 0.3)));
createIndex("test-idx");
@@ -792,7 +792,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
.setType("mock").setSettings(
Settings.builder()
.put("location", repositoryLocation)
- .put("random", randomAsciiOfLength(10))
+ .put("random", randomAlphaOfLength(10))
.put("random_data_file_io_exception_rate", 0.3)));
// Test restore after index deletion
@@ -833,7 +833,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
.setType("mock").setSettings(
Settings.builder()
.put("location", repositoryLocation)
- .put("random", randomAsciiOfLength(10))
+ .put("random", randomAlphaOfLength(10))
.put("use_lucene_corruption", true)
.put("max_failure_number", 10000000L)
.put("random_data_file_io_exception_rate", 1.0)));
@@ -879,7 +879,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
.setType("mock").setSettings(
Settings.builder()
.put("location", repositoryLocation)
- .put("random", randomAsciiOfLength(10))
+ .put("random", randomAlphaOfLength(10))
.put("random_data_file_io_exception_rate", 1.0) // Fail completely
));
@@ -1312,7 +1312,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
.setType("mock").setSettings(
Settings.builder()
.put("location", repositoryLocation)
- .put("random", randomAsciiOfLength(10))
+ .put("random", randomAlphaOfLength(10))
.put("wait_after_unblock", 200)));
// Create index on 2 nodes and make sure each node has a primary by setting no replicas
@@ -1373,7 +1373,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
.setType("mock").setSettings(
Settings.builder()
.put("location", repositoryLocation)
- .put("random", randomAsciiOfLength(10))
+ .put("random", randomAlphaOfLength(10))
.put("wait_after_unblock", 200)
).get();
assertThat(putRepositoryResponse.isAcknowledged(), equalTo(true));
@@ -1569,7 +1569,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
.setType("mock").setSettings(
Settings.builder()
.put("location", repositoryLocation)
- .put("random", randomAsciiOfLength(10))
+ .put("random", randomAlphaOfLength(10))
.put("wait_after_unblock", 200)
).get();
assertThat(putRepositoryResponse.isAcknowledged(), equalTo(true));
@@ -2533,7 +2533,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
logger.info("--> take {} snapshot(s)", numSnapshots - 1);
final String[] snapshotNames = new String[numSnapshots];
for (int i = 0; i < numSnapshots - 1; i++) {
- final String snapshotName = randomAsciiOfLength(8).toLowerCase(Locale.ROOT);
+ final String snapshotName = randomAlphaOfLength(8).toLowerCase(Locale.ROOT);
CreateSnapshotResponse createSnapshotResponse = client.admin()
.cluster()
.prepareCreateSnapshot(repositoryName, snapshotName)
@@ -2550,7 +2550,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
}
refresh();
- final String inProgressSnapshot = randomAsciiOfLength(8).toLowerCase(Locale.ROOT);
+ final String inProgressSnapshot = randomAlphaOfLength(8).toLowerCase(Locale.ROOT);
snapshotNames[numSnapshots - 1] = inProgressSnapshot;
// block a node so the create snapshot operation can remain in progress
final String blockedNode = blockNodeWithIndex(repositoryName, indexName);
@@ -2644,7 +2644,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
PutRepositoryResponse putRepositoryResponse =
client().admin().cluster().preparePutRepository(repo).setType("mock").setSettings(Settings.builder()
.put("location", randomRepoPath())
- .put("random", randomAsciiOfLength(10))
+ .put("random", randomAlphaOfLength(10))
.put("wait_after_unblock", 200)
).get();
assertTrue(putRepositoryResponse.isAcknowledged());
@@ -2688,7 +2688,7 @@ public class SharedClusterSnapshotRestoreIT extends AbstractSnapshotIntegTestCas
.put("random_control_io_exception_rate", randomIntBetween(5, 20) / 100f)
// test that we can take a snapshot after a failed one, even if a partial index-N was written
.put("atomic_move", false)
- .put("random", randomAsciiOfLength(10))));
+ .put("random", randomAlphaOfLength(10))));
logger.info("--> indexing some data");
assertAcked(prepareCreate("test-idx").setSettings(