m1a2st commented on PR #17440:
URL: https://github.com/apache/kafka/pull/17440#issuecomment-2489198670

   >  don't yet understand the need for passing the metadata error around in a 
Future. And I'm also still wondering if this could be handled at a lower layer 
so that we don't have to have bespoke code in the request managers to deal with 
it.
   
   The rationale behind this design is that when 
`ConsumerNetworkThread#processApplicationEvents` executes 
`checkAndUpdatePositionsEvent`, the T`opicAuthorizationException` doesn’t 
surface immediately. Instead, it may require several iterations of `runOnce` 
for the error to become apparent. Without using the future-based approach, it 
would be impossible to propagate this error from the background thread to the 
`OffsetsRequestManager`.
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to