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

uber / cherami-client-go / 199
83%

Build:
DEFAULT BRANCH: master
Ran 21 Apr 2017 10:47PM UTC
Jobs 2
Files 5
Run time 25s
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
199

cron

travis-ci

web-flow
Unblock read acks pump from inputhost (#17)

* Unblock read acks pump from inputhost

If the server is draining gracefully, then the server will send a
DRAIN command. The DRAIN command used to simply stop the write pump and
wait for the server to close the stream.

Even though server successfully will close the stream after finishing
the DRAIN, the readAcks pump will never see the EOF because we don't do
a stream.Read() unless we have some messages inflight.

This patch tries to solve that by waiting for a default of a minute and
explicitly closing the connection. In addition this patch also adds some
additional logs and metrics to make sure we can track retries and
failures on publish.

1. We need to make sure if we are already closing/draining we shouldn't
close the connection. This is critical because during reconfig we
could decide to close the connection but in the meanwhile we could
have received a drain command and started draining. In that case we
should just allow the drain process to take care of the rest.
2. Instead of waiting for the entire timeout period, we can ideally just
check for the number of responses we received and bail out immediately.

Fix connection close to make sure we always wait for sometime to give
a chance to drain.

We can avoid using the atomic variables for closed and we can just rely
on the shutting down channel to make sure we close is idempotent.

* Make sure we wait for the final drain timeout

If the checkDrainTimer fires, we exit immediately even if the
drain has not finished yet. But we should wait for the bigger
timeout as well.

233 of 288 relevant lines covered (80.9%)

1472.19 hits per line

Jobs
ID Job ID Ran Files Coverage
1 199.1 21 Apr 2017 10:47PM UTC 0
80.9
Travis Job 199.1
3 199.3 21 Apr 2017 10:48PM UTC 0
80.9
Travis Job 199.3
Source Files on build 199
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #199
  • 342225ee on github
  • Prev Build on master (#198)
  • Next Build on master (#200)
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