You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "kirktrue (via GitHub)" <gi...@apache.org> on 2023/02/27 17:28:59 UTC

[GitHub] [kafka] kirktrue commented on pull request #12813: KAFKA-14317: ProduceRequest timeouts are logged as network exceptions

kirktrue commented on PR #12813:
URL: https://github.com/apache/kafka/pull/12813#issuecomment-1446745731

   @dajac I'm having a bit of a hard time figuring out how to test this.
   
   Per your previous comments, the `NetworkClient` already issues a request for metadata update when the connection disconnects. However, because the `SenderTest` doesn't leverage `NetworkClient`, and instead uses `MockClient`, it's not possible to rely on that behavior.
   
   To fix this, I tried to update `MockClient` to have similar semantics to the `NetworkClient` with respect to when it handles disconnects and metadata updates, but that doesn't really "feel" right because it doesn't prove anything. I'm now thinking that I need to maybe handle this test in an integration test. I'll look into that now.
   
   Thanks


-- 
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-unsubscribe@kafka.apache.org

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