Current state: "Under Discussion"
Discussion thread: here
JIRA: here
Please keep the discussion on the mailing list rather than commenting on the wiki (wiki discussions get unwieldy fast).
Currently, the `ProducerPerformance` tool supports transactional producers but cannot randomly abort transactions during testing. This prevents developers from evaluating how transactional producers behave under failure scenarios.
This proposal targets four critical areas:
A single new command-line option is introduced: --transaction-abort-ratio
Property | Description |
|---|---|
Type | `Double` |
Range | 0.0 to 1.0 |
Default | 0.0 (no transactions aborted) |
Dependency | Only valid when transactions are enabled |
Add the `--transaction-abort-ratio` argument after the existing `--transaction-duration-ms` argument:
This feature will add a new configuration option to the ProducerPerformance tool that allows users to specify a ratio of transactions to abort during testing. This will enable users to simulate transaction failure scenarios while measuring performance metrics.
This feature is fully backward compatible:
The patch will include unit tests to ensure full coverage:
None