Skip to content

Commit

Permalink
Stop timer inside try to prevent double stop on timer
Browse files Browse the repository at this point in the history
Signed-off-by: Suraj Singh <surajrider@gmail.com>
  • Loading branch information
dreamer-89 committed Jul 10, 2023
1 parent 940fe8f commit f0f7bb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ public synchronized void sendFiles(GetSegmentFilesRequest request, ActionListene
try {
shard.updateVisibleCheckpointForShard(allocationId, copyState.getCheckpoint());
future.onResponse(new GetSegmentFilesResponse(List.of(storeFileMetadata)));
timer.stop();
} finally {
IOUtils.close(resources);
timer.stop();
logger.trace(
"[replication id {}] Source node completed sending files to target node [{}], timing: {}",
request.getReplicationId(),
Expand Down

0 comments on commit f0f7bb3

Please sign in to comment.