Skip to content

Commit 2db7858

Browse files
committed
improved detection and monitoring
1 parent 889b91b commit 2db7858

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

core/http/client/src/main/java/org/eclipse/rdf4j/http/client/QueryExecutionContext.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
*/
2121
public final class QueryExecutionContext {
2222

23-
private static final int CHECKPOINT_STRIDE_DEFAULT = 1024;
24-
private static int CHECKPOINT_STRIDE = CHECKPOINT_STRIDE_DEFAULT;
25-
private static int CHECKPOINT_MASK = CHECKPOINT_STRIDE - 1;
23+
private static boolean ignoreCheckpointStride = false;
24+
private static final int CHECKPOINT_STRIDE = 1024;
25+
private static final int CHECKPOINT_MASK = CHECKPOINT_STRIDE - 1;
2626
private static final ThreadLocal<State> CURRENT = new ThreadLocal<>();
2727
private static boolean heavyOperatorExecutionEnabled = true;
2828
private static int checkpointCalls;
@@ -96,6 +96,7 @@ public interface Activation extends AutoCloseable {
9696
}
9797

9898
private static boolean shouldCheckpoint() {
99+
if(ignoreCheckpointStride) return true;
99100
return ((++checkpointCalls) & CHECKPOINT_MASK) == 0;
100101
}
101102

0 commit comments

Comments
 (0)