Skip to content

Commit 7ce87c9

Browse files
committed
improved detection and monitoring
1 parent 41d8c2a commit 7ce87c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/http/client/src/test/java/org/eclipse/rdf4j/http/client/QueryCircuitBreakerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void shouldDeriveDefaultFreeMemoryThresholdsFromMaxHeap() throws Exception {
7777
}
7878

7979
@Test
80-
void shouldThrottleExecutionContextCheckpointToEvery16384Calls() throws Exception {
80+
void shouldThrottleExecutionContextCheckpointToEvery1024Calls() throws Exception {
8181
PropertiesScope properties = new PropertiesScope().with(QueryCircuitBreaker.ENABLED_PROPERTY, "false");
8282
QueryCircuitBreaker breaker = QueryCircuitBreaker.getInstance();
8383
QueryCircuitBreakerHandle handle = breaker.register(QueryCircuitBreakerHandle.Source.SERVER, "repo",
@@ -86,7 +86,7 @@ void shouldThrottleExecutionContextCheckpointToEvery16384Calls() throws Exceptio
8686
try {
8787
properties.apply();
8888
try (QueryExecutionContext.Activation ignored = QueryExecutionContext.activate(handle)) {
89-
for (int i = 0; i < 16383; i++) {
89+
for (int i = 0; i < 1023; i++) {
9090
QueryExecutionContext.checkpoint("JOIN");
9191
}
9292
assertEquals(-1L, handle.getLastHeavyCheckpointMillis());

0 commit comments

Comments
 (0)