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

uber / tchannel-go / 1988
88%
dev: 88%

Build:
Build:
LAST BUILD BRANCH: delayed_frame_alloc
DEFAULT BRANCH: dev
Ran 02 Jun 2016 11:24PM UTC
Jobs 4
Files 42
Run time 1min
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
1988

push

travis-ci

prashantv
Fix channel close not checking state under write lock

It's possible for multiple connections to close and trigger
connectionCloseStateChange from multiple goroutines.

This could lead to:

G1: C1 closes, and runs connectionCloseStateChange
G1: Finds minState connectionInboundClosed
G1: updateTo = ChannelInboundClosed
<g1 scheduled off before it completes>
G2: C2 closes, and runs connectionCloseStateChange
G2: Finds minState connectionClosed
G2: updateTo = ChannelClosed
G2: Updates channel state to ChannelClosed
<g1 is rescheduled>
G1: Grabs state lock, and sets state to ChannelInboundClosed

Since all connections are closed, the channel will be stuck in
ChannelInboundClosed.

We should be checking that the decision we made is not stale by
comparing the state matches what we had before the lock when making
the change.

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

3799 of 4348 relevant lines covered (87.37%)

10777.34 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
outbound.go
Jobs
ID Job ID Ran Files Coverage
1 1988.1 (TEST_TIMEOUT_SCALE=20) 02 Jun 2016 11:24PM UTC 0
86.22
Travis Job 1988.1
2 1988.2 (TEST_TIMEOUT_SCALE=20) 02 Jun 2016 11:25PM UTC 0
86.51
Travis Job 1988.2
3 1988.3 (TEST_TIMEOUT_SCALE=20) 02 Jun 2016 11:25PM UTC 0
85.91
Travis Job 1988.3
4 1988.4 (TEST_TIMEOUT_SCALE=20) 02 Jun 2016 11:25PM UTC 0
85.32
Travis Job 1988.4
Source Files on build 1988
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1988
  • a3089662 on github
  • Prev Build on fix_flaky_test (#1987)
  • Next Build on fix_flaky_test (#3097)
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

© 2025 Coveralls, Inc