chia7712 opened a new pull request #9673:
URL: https://github.com/apache/kafka/pull/9673


   issue: https://issues.apache.org/jira/browse/KAFKA-10289
   
   In Python 3, ```filter``` functions return iterators rather than ```list``` 
so it can traverse only once. Hence, the following loop only see "empty" and 
then validation fails.
   
   ```python
           src_messages = self.source.committed_messages() # return iterator
           sink_messages = self.sink.flushed_messages()) # return iterator
           for task in range(num_tasks):
               # only first task can "see" the result. following tasks see 
empty result
               src_seqnos = [msg['seqno'] for msg in src_messages if 
msg['task'] == task]
   ```
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


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

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


Reply via email to