We've removed the special exception handling recently, but if we are going to enable retries (and use idempotent producer to avoid ordering violations), we need to be prepared to handle this exception.
After thinking longer, it looks like we do not need special handling of this error after all, since we are not calling Producer#send() again with the same records, so no reordering should happen.
We've removed the special exception handling recently, but if we are going to enable retries (and use idempotent producer to avoid ordering violations), we need to be prepared to handle this exception.