Skip to content

Commit 294d018

Browse files
committed
wip
1 parent c500d75 commit 294d018

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/NativeSailStoreCorruptionTest.java

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

283283
for (long i = 4; i < fileSize; i++) {
284+
if (i % 1024 == 0) {
285+
System.out.println("Testing byte " + i);
286+
}
284287
restoreFile(dataDir, file);
285288
overwriteByteInFile(nativeStoreFile, i, 0x0);
286289
repo.init();
@@ -366,6 +369,9 @@ public void testCorruptValuesPoscDataFile() throws IOException {
366369
long fileSize = nativeStoreFile.length();
367370

368371
for (long i = 4; i < fileSize; i++) {
372+
if (i % 1024 == 0) {
373+
System.out.println("Testing byte " + i);
374+
}
369375
NativeStore.SOFT_FAIL_ON_CORRUPT_DATA_AND_REPAIR_INDEXES = true;
370376
restoreFile(dataDir, file);
371377
overwriteByteInFile(nativeStoreFile, i, 0x0);
@@ -413,6 +419,9 @@ public void testCorruptValuesSpocDataFile() throws IOException {
413419
long fileSize = nativeStoreFile.length();
414420

415421
for (long i = 4; i < fileSize; i++) {
422+
if (i % 1024 == 0) {
423+
System.out.println("Testing byte " + i);
424+
}
416425
restoreFile(dataDir, file);
417426
overwriteByteInFile(nativeStoreFile, i, 0x0);
418427
repo.init();

0 commit comments

Comments
 (0)