Skip to content

Commit 3d451b3

Browse files
committed
wip
1 parent 128abb1 commit 3d451b3

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

core/sail/nativerdf/src/main/java/org/eclipse/rdf4j/sail/nativerdf/wal/ValueStoreWAL.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ public void awaitDurable(long lsn) throws InterruptedException, IOException {
192192
return;
193193
}
194194
requestForce(lsn);
195+
if (config.syncPolicy() == ValueStoreWalConfig.SyncPolicy.INTERVAL) {
196+
return;
197+
}
195198
synchronized (ackMonitor) {
196199
while (lastForcedLsn.get() < lsn && writerFailure == null && !closed) {
197200
ackMonitor.wait(TimeUnit.MILLISECONDS.toMillis(10));

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public void concurrentAddAndReadMayCorrupt() throws Exception {
129129
while (System.nanoTime() < until) {
130130
try (RepositoryResult<Statement> statements = conn.getStatements(null, null, null, false)) {
131131
// no-op; force materialization
132-
//noinspection ResultOfMethodCallIgnored
132+
// noinspection ResultOfMethodCallIgnored
133133
statements.forEachRemaining(Object::toString);
134134
}
135135
Thread.onSpinWait();
@@ -170,7 +170,7 @@ public void concurrentAddAndReadMayCorrupt() throws Exception {
170170
// If corruption occurred, iterating statements should throw RepositoryException
171171

172172
try (RepositoryResult<Statement> statements = conn.getStatements(null, null, null, false)) {
173-
//noinspection ResultOfMethodCallIgnored
173+
// noinspection ResultOfMethodCallIgnored
174174
statements.forEachRemaining(Object::toString);
175175
}
176176
}

0 commit comments

Comments
 (0)