From 56c0512e1016dc05952e9227fd11e91638ceb545 Mon Sep 17 00:00:00 2001 From: Bryan Burkholder <771133+bryanlb@users.noreply.github.com> Date: Mon, 12 Feb 2024 16:49:55 -0700 Subject: [PATCH] Fix incorrect unit in recovery timeout (#770) Co-authored-by: Bryan Burkholder --- .../src/main/java/com/slack/kaldb/chunk/ReadOnlyChunkImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kaldb/src/main/java/com/slack/kaldb/chunk/ReadOnlyChunkImpl.java b/kaldb/src/main/java/com/slack/kaldb/chunk/ReadOnlyChunkImpl.java index b220c2304b..5356354c8d 100644 --- a/kaldb/src/main/java/com/slack/kaldb/chunk/ReadOnlyChunkImpl.java +++ b/kaldb/src/main/java/com/slack/kaldb/chunk/ReadOnlyChunkImpl.java @@ -304,7 +304,7 @@ private boolean setChunkMetadataState( try { cacheSlotMetadataStore .updateNonFreeCacheSlotState(cacheSlotMetadata, newState) - .get(DEFAULT_ZK_TIMEOUT_SECS, TimeUnit.MILLISECONDS); + .get(DEFAULT_ZK_TIMEOUT_SECS, TimeUnit.SECONDS); return true; } catch (InterruptedException | ExecutionException | TimeoutException e) { LOG.error("Error setting chunk metadata state", e);