lianetm commented on PR #15844:
URL: https://github.com/apache/kafka/pull/15844#issuecomment-2096232639

   Did we consider the approach of simply decoupling the request timeout from 
the application event timeout? We could issue the fetch request without a time 
boundary (max value probably), and get the application event result with the 
time boundary 
([here](https://github.com/apache/kafka/blob/097522abd6b51bca2407ea0de7009ed6a2d970b4/clients/src/main/java/org/apache/kafka/clients/consumer/internals/AsyncKafkaConsumer.java#L1672-L1676)).
 
   
   Expressing the intention when creating the request and event seems clearer 
and brings what we want: fetch requests would remain in the background thread 
until they get a response or timeout, so they could be reused by a following 
fetch application event (for the same partitions). Then we could keep the 
manager logic simple and consistent around how inflights are maintained 
(removed when they get a response or expire, as it is now). I may be missing 
something, thoughts? 


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