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

GoogleCloudPlatform / google-cloud-java / 3902
72%

Build:
DEFAULT BRANCH: master
Ran 12 May 2017 05:54AM UTC
Jobs 1
Files 453
Run time 22s
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
3902

Pull #2055

travis-ci

web-flow
pubsub: start connections slowly

Starting a new connection seems to add a task which blocks
a thread in our thread pool.
It does not block for long, but Subscriber starts many connections,
slamming the pool.
If the number of threads the pool is low, the pool is blocked for
a long time, causing strange delays and RPC failures.

This PR alleviates this problem by starting connections one at a time.
- Each connection now make one successful call before declaring itself running.
- The Subscriber waits for a connection to be in running state
  before starting another.

Together, these changes limit the number of blocking tasks
registered to the pool.

Since starting the Subscriber can now take a significant amount of time,
and `doStart` should return promptly,
a new thread is used to start up the connections.
Pull Request #2055: pubsub: start connections slowly

19 of 19 new or added lines in 2 files covered. (100.0%)

19197 of 23730 relevant lines covered (80.9%)

139.84 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
100.0
google-cloud-pubsub/src/main/java/com/google/cloud/pubsub/spi/v1/Subscriber.java
Jobs
ID Job ID Ran Files Coverage
2 3902.2 12 May 2017 05:54AM UTC 0
80.9
Travis Job 3902.2
Source Files on build 3902
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #3902
  • Pull Request #2055
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc