Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0, 1.0.6, 1.1.3, 1.2.2
Description
Recently I upgraded our storm topology to use the storm-kafka-client instead of storm-kafka. After the upgrade in our production environment we saw a significant (2x) reduction in our processing throughput.
We process ~20000 kafka messages per second, on a 10 machine kafka 1.0.0 server cluster.
After some investigation, it looks like the issue only occurs when using kafka clients 0.11 or newer.
In kafka 0.11, the kafka consumer method commited always blocks to make an external call o get the last commited offsets
In kafka 0.10.2 the kafka consumer only made the blocking remote call if the partition is not assigned to the consumer
The impact of this is to require every tuple to make blocking remote calls before being emitted.
Removing this check returns performance to expected levels.
Looking through the storm-kafka-client code, it is not clear to me the impact of ignoring the check. In our case we want at least once processing, but for other processing gurantees the call to kafkaConsumer.commited(tp) is not needed, as the value is only looked at if the processing mode is at least once.