Skip to content

Commit

Permalink
fix: Fix scheduling jvb health checks. (#1156)
Browse files Browse the repository at this point in the history
* fix: Fix scheduling jvb health checks.

Scheduling at a fixed rate leads to IO threads building up when a bridge
becomes unresponsive and the duration of health checks becomes longer
than the health check interval.
  • Loading branch information
bgrozev authored Jun 21, 2024
1 parent eaaf613 commit 8fc38a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ private static class PeriodicHealthCheckTask
private PeriodicHealthCheckTask(Runnable task, long healthCheckInterval)
{
innerTask = task;
future = TaskPools.getScheduledPool().scheduleAtFixedRate(
future = TaskPools.getScheduledPool().scheduleWithFixedDelay(
() -> innerFuture = TaskPools.getIoPool().submit(runInner),
healthCheckInterval,
healthCheckInterval,
Expand Down

0 comments on commit 8fc38a3

Please sign in to comment.