HomeSoftware Heritage

Prevent busy-waiting on / spamming consumer.poll.

Description

Prevent busy-waiting on / spamming consumer.poll.

will return shortly before X expired
(a matter of milliseconds), so after it returns a first time, it
will then be called with a timeout in the order of milliseconds,
therefore returning immediately, then be called again, etc.

This commit prevents it from being called with a timeout <= 10ms.

Details

Provenance
vlorentzAuthored on Oct 28 2019, 2:11 PM
vlorentzPushed on Oct 29 2019, 2:30 PM
Differential Revision
D2182: Prevent busy-waiting on / spamming consumer.poll.
Parents
rDJNL04d3ad87cf43: Log errors from confluent_kafka.Consumer.
Branches
Unknown
Tags
Unknown
Build Status
Buildable 8670
Build 12616: test-and-buildJenkins