Skip to content

Commit 2dc42e6

Browse files
committed
wip
1 parent f621dab commit 2dc42e6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/sail/nativerdf/src/test/java/org/eclipse/rdf4j/sail/nativerdf/NativeSailStoreCorruptionTestIT.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,9 @@ public void testCorruptValuesHashFile() throws IOException {
285285
String expected = getStatements().stream().map(Object::toString).reduce((a, b) -> a + "\n" + b).get();
286286

287287
for (long i = 4; i < fileSize; i++) {
288+
if (i % 1024 == 0) {
289+
System.out.println("Testing byte " + i);
290+
}
288291
restoreFile(dataDir, file);
289292
overwriteByteInFile(nativeStoreFile, i, 0x0);
290293
repo.init();
@@ -370,6 +373,9 @@ public void testCorruptValuesPoscDataFile() throws IOException {
370373
long fileSize = nativeStoreFile.length();
371374

372375
for (long i = 4; i < fileSize; i++) {
376+
if (i % 1024 == 0) {
377+
System.out.println("Testing byte " + i);
378+
}
373379
NativeStore.SOFT_FAIL_ON_CORRUPT_DATA_AND_REPAIR_INDEXES = true;
374380
restoreFile(dataDir, file);
375381
overwriteByteInFile(nativeStoreFile, i, 0x0);
@@ -417,6 +423,9 @@ public void testCorruptValuesSpocDataFile() throws IOException {
417423
long fileSize = nativeStoreFile.length();
418424

419425
for (long i = 4; i < fileSize; i++) {
426+
if (i % 1024 == 0) {
427+
System.out.println("Testing byte " + i);
428+
}
420429
restoreFile(dataDir, file);
421430
overwriteByteInFile(nativeStoreFile, i, 0x0);
422431
repo.init();

0 commit comments

Comments
 (0)