DUE TO SPAM, SIGN-UP IS DISABLED. Goto Selfserve wiki signup and request an account.
...
Unit tests for `KafkaProducer` to show that the new feature works with different `send()` errors and exceptions such as RecordTooLargeException.
Rejected Alternatives
- Add a producer custom exception handler interface: see KIP-1038 and the discussions.
- Identify poison pill records application-side: It is not efficient and sometimes not even doable. For example for identifying too-large-records the application must be aware of producer configs as well as serialization method, which is not feasible sometimes. More over, checking every single record's size before sending it to catch the bad record is an overhead considering that this check is done by Producer as well.
- Add the feature of clearing errors to `flush()`: `flush()` is not necessarily a transactional method + `AddPartition` is not done successfully in the next `send`.
- Add the feature of clearing errors to `commitTxn()`: `AddPartition` is not done successfully in the next `send`.
- `send()` throws ApiException: may break backward compatibility.
- No need of explicit `flush()` before calling `
commitTransaction(commitOptions)`: not safe + `AddPartition` is not done successfully in the next `send` - The user must use ALOS instead of EOS in case they want to drop the poison pill records: ALOS can not guarantee not having duplicates.