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

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

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

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.

3799 of 4348 relevant lines covered (87.37%)

107856.41 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1987.1 (TEST_TIMEOUT_SCALE=20) 02 Jun 2016 11:01PM UTC 0
85.51
Travis Job 1987.1
2 1987.2 (TEST_TIMEOUT_SCALE=20) 02 Jun 2016 11:01PM UTC 0
86.88
Travis Job 1987.2
3 1987.3 (TEST_TIMEOUT_SCALE=20) 02 Jun 2016 11:01PM UTC 0
86.65
Travis Job 1987.3
4 1987.4 (TEST_TIMEOUT_SCALE=20) 02 Jun 2016 11:02PM UTC 0
85.32
Travis Job 1987.4
Source Files on build 1987
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1987
  • 2517921a on github
  • Prev Build on fix_flaky_test (#1986)
  • Next Build on fix_flaky_test (#1988)
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