Skip to content

Commit

Permalink
fix: Fix scheduling jvb health checks.
Browse files Browse the repository at this point in the history
Scheduling at a fixed rate leads to IO threads building up when a bridge
becomes unresponsibe and the duration of health checks becomes longer
than the health check interval.
  • Loading branch information
bgrozev committed Jun 21, 2024
1 parent dad2af9 commit 5ee1092
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 5ee1092

Please sign in to comment.