cmccabe commented on PR #14903:
URL: https://github.com/apache/kafka/pull/14903#issuecomment-1839747217

   Thanks for looking at this, @soarez .
   
   I don't think `nextSchedulingShouldBeImmediate` should be reset to false 
until the `CommunicationEvent` is run.
   
   I also think we should be a bit more careful about setting 
`communicationInFlight` ... it should only be set after 
`_channelManager.sendRequest` has been called. And even that call should 
probably be wrapped in a `try...catch`. If `sendRequest` throws, we don't want 
to be stuck never sending another request.
   
   (I don't think sendRequest is supposed to throw, but we should be careful.)
   
   I don't think prepend is needed anywhere. To be honest, the presence of 
`prepend` usually indicates a bug... :) Instead, `CommunicationEvent.run()` 
should gracefully handle running when `communicationInFlight = true` Probably 
by doing nothing.


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