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

Parsely / pykafka / 571
38%

Build:
DEFAULT BRANCH: master
Ran 14 May 2015 06:30PM UTC
Jobs 1
Files 24
Run time 3s
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

pending completion
571

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

2 of 2 new or added lines in 1 file covered. (100.0%)

1321 of 1843 relevant lines covered (71.68%)

0.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 571.1 (BROKERS=localhost:9092,localhost:9093,localhost:9094 ZOOKEEPER=localhost:2181 KAFKA_BIN=/home/travis/kafka-bin) 14 May 2015 06:30PM UTC 0
71.68
Travis Job 571.1
Source Files on build 571
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #571
  • f21e514d on github
  • Prev Build on master (#570)
  • Next Build on master (#572)
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