Browse Source
Sender/RecordAccumulator never resets the next batch expiry time. Its always computed as the min of the current value and the expiry time for all batches being processed. This means that its always set to the expiry time of the first batch, and once that time has passed Sender starts spinning on epoll with a timeout of 0, which consumes a lot of CPU. This patch updates Sender to reset the next batch expiry time on each poll loop so that a new value reflecting the expiry time for the current set of batches is computed. Reviewers: Guozhang Wang <wangguoz@gmail.com>pull/5540/head
Rohan
6 years ago
committed by
Guozhang Wang
3 changed files with 48 additions and 0 deletions
Loading…
Reference in new issue