• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Parsely / pykafka / 571 / 1
38%
master: 38%

Build:
DEFAULT BRANCH: master
Ran 14 May 2015 06:30PM UTC
Files 24
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 May 2015 06:28PM UTC coverage: 71.677% (+0.06%) from 71.615%
BROKERS=localhost:9092,localhost:9093,localhost:9094 ZOOKEEPER=localhost:2181 KAFKA_BIN=/home/travis/kafka-bin

push

travis-ci

emmett9001
If the consumer has stopped running, break out of blocking consume().

When using a BalancedConsumer with consumer_timeout_ms=-1 and block=True (that is, full blocking consume() calls enabled), a rebalance (and thus a reallocation of the internal SimpleConsumer) caused the timeout loop in SimpleConsumer.consume() to spin infinitely. This caused execution in the caller of consume() to halt, resulting in a 'frozen' consumer at the application level.
This commit addresses this issue by ensuring that the loop is broken if the consumer has stopped running (which happens during a rebalance).

One side effect of this commit is that consumer applications that call BalancedConsumer.consume() with block=True and consumer_timeout_ms=-1 will now have to handle that function returning None messages. Previously, it didn't need to, but this commit means that even the fully-blocking mode will occasionally return None during a rebalance.

This commit addresses ticket #164

1321 of 1843 relevant lines covered (71.68%)

0.72 hits per line

Source Files on job 571.1 (BROKERS=localhost:9092,localhost:9093,localhost:9094 ZOOKEEPER=localhost:2181 KAFKA_BIN=/home/travis/kafka-bin)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 571
  • Travis Job 571.1
  • f21e514d on github
  • Prev Job for BROKERS=localhost:9092,localhost:9093,localhost:9094 ZOOKEEPER=localhost:2181 KAFKA_BIN=/home/travis/kafka-bin on master (#570.1)
  • Next Job for BROKERS=localhost:9092,localhost:9093,localhost:9094 ZOOKEEPER=localhost:2181 KAFKA_BIN=/home/travis/kafka-bin on master (#572.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc