shashankhs11 commented on code in PR #20829:
URL: https://github.com/apache/kafka/pull/20829#discussion_r2499066360
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java:
##########
@@ -1095,6 +1096,11 @@ private void addTaskToStateUpdater(final Task task) {
lockException.getMessage());
tasks.addPendingTasksToInit(Collections.singleton(task));
updateOrCreateBackoffRecord(task.id(), nowMs);
+ } catch (final TimeoutException timeoutException) {
+ task.maybeInitTaskTimeoutOrThrow(nowMs, timeoutException);
+ tasks.addPendingTasksToInit(Collections.singleton(task));
+ updateOrCreateBackoffRecord(task.id(), nowMs);
+ log.debug("Task {} timed out during initialization; will retry",
task.id(), timeoutException);
Review Comment:
changed in a0e55f0
##########
streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java:
##########
@@ -1095,6 +1096,11 @@ private void addTaskToStateUpdater(final Task task) {
lockException.getMessage());
tasks.addPendingTasksToInit(Collections.singleton(task));
updateOrCreateBackoffRecord(task.id(), nowMs);
+ } catch (final TimeoutException timeoutException) {
+ task.maybeInitTaskTimeoutOrThrow(nowMs, timeoutException);
Review Comment:
added comment in a0e55f0
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]