Skip to content

Commit

Permalink
KAFKA-17109: Reduce log message load for failed locking (apache#16705)
Browse files Browse the repository at this point in the history
Reducing log messaging by removing stacktrace.

Reviewer: Bruno Cadonna <cadonna@apache.org>
  • Loading branch information
danicafine authored Nov 13, 2024
1 parent 6bc7be7 commit 9682e63
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,8 @@ private void addTaskToStateUpdater(final Task task) {
} catch (final LockException lockException) {
// The state directory may still be locked by another thread, when the rebalance just happened.
// Retry in the next iteration.
log.info("Encountered lock exception. Reattempting locking the state in the next iteration.", lockException);
log.info("Encountered lock exception. Reattempting locking the state in the next iteration. Error message was: {}",
lockException.getMessage());
tasks.addPendingTasksToInit(Collections.singleton(task));
updateOrCreateBackoffRecord(task.id(), nowMs);
}
Expand Down

0 comments on commit 9682e63

Please sign in to comment.