vvcephei commented on a change in pull request #11405:
URL: https://github.com/apache/kafka/pull/11405#discussion_r731269776



##########
File path: 
streams/src/main/java/org/apache/kafka/streams/processor/internals/AbstractTask.java
##########
@@ -168,11 +167,15 @@ public void maybeInitTaskTimeoutOrThrow(final long 
currentWallClockMs,
                 StreamsConfig.TASK_TIMEOUT_MS_CONFIG
             );
 
+            final StreamsException exception;
             if (cause != null) {
-                throw new TimeoutException(errorMessage, cause);
+                exception = new StreamsException(errorMessage, cause);
             } else {
-                throw new TimeoutException(errorMessage);
+                exception = new StreamsException(errorMessage);

Review comment:
       For example:
   
   ```suggestion
                   exception = new StreamsException(new 
TimeoutException(errorMessage));
   ```




-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to