jeqo commented on code in PR #19197:
URL: https://github.com/apache/kafka/pull/19197#discussion_r2001498693


##########
core/src/main/scala/kafka/server/DelayedRemoteFetch.scala:
##########
@@ -119,6 +118,9 @@ class DelayedRemoteFetch(remoteFetchTask: Future[Void],
             false)
         }
       } else {
+        // cancel the remote storage read task, if it has not been executed yet
+        if (!remoteFetchFuture.isDone)
+          remoteFetchFuture.cancel()

Review Comment:
   Right. Moving this cancel back to the onExpiration



-- 
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