@@ -199,7 +199,7 @@ private void verifyIndices() {
199
199
final var name = indicesEntry .getKey ();
200
200
final var indexId = indicesEntry .getValue ();
201
201
if (name .equals (indexId .getName ()) == false ) {
202
- addFailure ("index name [%s] has mismatched name in [%s] " , name , indexId );
202
+ addFailure ("index name [%s] has mismatched name in %s " , name , indexId );
203
203
}
204
204
}
205
205
@@ -242,7 +242,7 @@ void run() {
242
242
243
243
private void verifyIndexSnapshot (RefCounted indexSnapshotRefs , SnapshotId snapshotId ) {
244
244
if (expectedSnapshots .contains (snapshotId ) == false ) {
245
- addFailure ("index [%s] has mismatched snapshot [%s]" , indexId , snapshotId );
245
+ addFailure ("index %s has mismatched snapshot [%s]" , indexId , snapshotId );
246
246
}
247
247
248
248
final var indexMetaBlobId = repositoryData .indexMetaDataGenerations ().indexMetaBlobId (snapshotId , indexId );
@@ -291,7 +291,7 @@ private BlobStoreIndexShardSnapshot getBlobStoreIndexShardSnapshot(SnapshotId sn
291
291
addFailure (
292
292
new RepositoryVerificationException (
293
293
repositoryName ,
294
- format ("failed to load shard %s/%d snapshot for %s " , indexId , shardId , snapshotId ),
294
+ format ("failed to load shard %s[%d] snapshot for [%s] " , indexId , shardId , snapshotId ),
295
295
e
296
296
)
297
297
);
@@ -306,7 +306,7 @@ private int getNumberOfShards(String indexMetaBlobId, SnapshotId snapshotId) {
306
306
addFailure (
307
307
new RepositoryVerificationException (
308
308
repositoryName ,
309
- format ("failed to load index %s metadata for %s from blob [%s]" , indexId , snapshotId , indexMetaBlobId ),
309
+ format ("failed to load index %s metadata for [%s] from blob [%s]" , indexId , snapshotId , indexMetaBlobId ),
310
310
e
311
311
)
312
312
);
@@ -317,7 +317,7 @@ private int getNumberOfShards(String indexMetaBlobId, SnapshotId snapshotId) {
317
317
private BlobStoreIndexShardSnapshots getBlobStoreIndexShardSnapshots (int shardId ) {
318
318
final var shardGen = repositoryData .shardGenerations ().getShardGen (indexId , shardId );
319
319
if (shardGen == null ) {
320
- addFailure ("unknown shard generation for %s/%d " , indexId , shardId );
320
+ addFailure ("unknown shard generation for %s[%d] " , indexId , shardId );
321
321
return null ;
322
322
}
323
323
try {
@@ -340,7 +340,7 @@ private void verifyShardSnapshot(
340
340
341
341
if (shardSnapshot .snapshot ().equals (snapshotId .getName ()) == false ) {
342
342
addFailure (
343
- "snapshot [%s] for shard [%s/ %d] has mismatched name [%s]" ,
343
+ "snapshot [%s] for shard %s[ %d] has mismatched name [%s]" ,
344
344
snapshotId ,
345
345
indexId ,
346
346
shardId ,
@@ -364,7 +364,7 @@ private void verifyShardSnapshot(
364
364
}
365
365
366
366
if (foundSnapshot == false ) {
367
- addFailure ("snapshot [%s] for shard [%s/ %d] has no entry in the shard-level summary" , snapshotId , indexId , shardId );
367
+ addFailure ("snapshot [%s] for shard %s[ %d] has no entry in the shard-level summary" , snapshotId , indexId , shardId );
368
368
}
369
369
}
370
370
}
@@ -383,15 +383,15 @@ private void verifyConsistentShardFiles(
383
383
final var snapshotFile = snapshotFiles .get (summaryFile .physicalName ());
384
384
if (snapshotFile == null ) {
385
385
addFailure (
386
- "snapshot [%s] for shard [%s/ %d] has no entry for file [%s] found in summary" ,
386
+ "snapshot [%s] for shard %s[ %d] has no entry for file [%s] found in summary" ,
387
387
snapshotId ,
388
388
indexId ,
389
389
shardId ,
390
390
summaryFile .physicalName ()
391
391
);
392
392
} else if (summaryFile .isSame (snapshotFile ) == false ) {
393
393
addFailure (
394
- "snapshot [%s] for shard [%s/ %d] has a mismatched entry for file [%s]" ,
394
+ "snapshot [%s] for shard %s[ %d] has a mismatched entry for file [%s]" ,
395
395
snapshotId ,
396
396
indexId ,
397
397
shardId ,
@@ -406,7 +406,7 @@ private void verifyConsistentShardFiles(
406
406
for (final var snapshotFile : shardSnapshot .indexFiles ()) {
407
407
if (summaryFiles .get (snapshotFile .physicalName ()) == null ) {
408
408
addFailure (
409
- "snapshot [%s] for shard [%s/ %d] has no entry in the shard-level summary for file [%s]" ,
409
+ "snapshot [%s] for shard %s[ %d] has no entry in the shard-level summary for file [%s]" ,
410
410
snapshotId ,
411
411
indexId ,
412
412
shardId ,
@@ -435,7 +435,7 @@ private void verifyFileInfo(
435
435
final var actualLength = ByteSizeValue .ofBytes (fileInfo .metadata ().hash ().length );
436
436
if (fileLength .getBytes () != actualLength .getBytes ()) {
437
437
addFailure (
438
- "snapshot [%s] for shard [%s/ %d] has virtual blob [%s] for [%s] with length [%s] instead of [%s]" ,
438
+ "snapshot [%s] for shard %s[ %d] has virtual blob [%s] for [%s] with length [%s] instead of [%s]" ,
439
439
snapshot ,
440
440
indexId ,
441
441
shardId ,
@@ -452,7 +452,7 @@ private void verifyFileInfo(
452
452
final var partLength = ByteSizeValue .ofBytes (fileInfo .partBytes (part ));
453
453
if (blobInfo == null ) {
454
454
addFailure (
455
- "snapshot [%s] for shard [%s/ %d] has missing blob [%s] for [%s] part [%d/%d]; "
455
+ "snapshot [%s] for shard %s[ %d] has missing blob [%s] for [%s] part [%d/%d]; "
456
456
+ "file length [%s], part length [%s]" ,
457
457
snapshot ,
458
458
indexId ,
@@ -467,7 +467,7 @@ private void verifyFileInfo(
467
467
468
468
} else if (blobInfo .length () != partLength .getBytes ()) {
469
469
addFailure (
470
- "snapshot [%s] for shard [%s/ %d] has blob [%s] for [%s] part [%d/%d] with length [%s] instead of [%s]; "
470
+ "snapshot [%s] for shard %s[ %d] has blob [%s] for [%s] part [%d/%d] with length [%s] instead of [%s]; "
471
471
+ "file length [%s]" ,
472
472
snapshot ,
473
473
indexId ,
0 commit comments