jlprat commented on a change in pull request #11083:
URL: https://github.com/apache/kafka/pull/11083#discussion_r672944792



##########
File path: 
streams/src/test/java/org/apache/kafka/streams/integration/TaskMetadataIntegrationTest.java
##########
@@ -158,9 +158,13 @@ public void shouldReportCorrectEndOffsetInformation() {
         }
     }
 
-    private TaskMetadata getTaskMetadata(final KafkaStreams kafkaStreams) {
+    private TaskMetadata getTaskMetadata(final KafkaStreams kafkaStreams) 
throws InterruptedException {
+        TestUtils.waitForCondition( () -> kafkaStreams

Review comment:
       Correct me if I'm wrong, I just want to understand better the case you 
are raising. You mean to keep the `TaskMetadata` used for this test and then 
compare them with the `activeTasks`, right?
   But I don't really understand how this will prevent from discrepancies if 
the task has been revoked in between calls. Wouldn't it be then also not 
present in `activeTasks`?
   
   Sorry to hijack this for this question and thanks in advance!




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