Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

As was experimented and as can be seen as part of the integration tests, when an invalid size is detected and the exception InvalidReceiveException is thrown, consumers and producers keeps retrying until the poll timeout expires or the maximum number of retries is reached. This is incorrect if we consider the use case of protocol mismatch which motivated this change. Indeed, producers and consumers would need to fail fast as retries will prolonged only prolong the time to remediation from users/administrators.

...