mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
Trivial point, but we were only testing shard generations for a single shard here, accidentally, and not testing the `null` generation case at all.
This commit is contained in:
parent
51c1b48b24
commit
53a22b8a8a
@ -276,7 +276,8 @@ public class RepositoryDataTests extends ESTestCase {
|
|||||||
for (IndexId someIndex : someIndices) {
|
for (IndexId someIndex : someIndices) {
|
||||||
final int shardCount = randomIntBetween(1, 10);
|
final int shardCount = randomIntBetween(1, 10);
|
||||||
for (int j = 0; j < shardCount; ++j) {
|
for (int j = 0; j < shardCount; ++j) {
|
||||||
builder.put(someIndex, 0, UUIDs.randomBase64UUID(random()));
|
final String uuid = randomBoolean() ? null : UUIDs.randomBase64UUID(random());
|
||||||
|
builder.put(someIndex, j, uuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositoryData = repositoryData.addSnapshot(snapshotId, randomFrom(SnapshotState.values()), builder.build());
|
repositoryData = repositoryData.addSnapshot(snapshotId, randomFrom(SnapshotState.values()), builder.build());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user