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

tarantool / go-tarantool / 34838107314
77%
master: 76%

Build:
Build:
LAST BUILD BRANCH: bigbes/gh-no-request-accounting
DEFAULT BRANCH: master
Ran 14 Sep 2026 11:35AM UTC
Jobs 1
Files 19
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

10 Sep 2026 02:57PM UTC coverage: 76.475% (+0.06%) from 76.417%
34838107314

Pull #603

github

bigbes
connection: fix data race between two reader goroutines

conn.lenbuf and conn.dec were per-Connection fields, but two reader
goroutines of the same Connection can be alive at the same time. When the
writer goroutine hits an I/O error it calls reconnect(), which closes the
current Conn and dials a new one under conn.mutex, starting a fresh
reader. The old reader is not stopped by that: it keeps consuming the data
already buffered by the previous connection and only leaves its loop on
connClosed or on a read/decode error, so both readers write into the same
length buffer and reset the same msgpack decoder with no happens-before
edge between them.

Make both of them locals of reader() and drop the now-unused Connection
fields. The added test drives the existing mockIoConn with a long prepared
response stream and a Flush() that fails after a short delay, which
reproduces the overlap deterministically enough for -race to report it.
Flush() gained the two fields it needs to fail; the rest of the mock is
already what the test wants.
Pull Request #603: connection: fix data race between two reader goroutines

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

2 existing lines in 1 file now uncovered.

3189 of 4170 relevant lines covered (76.47%)

85315.05 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
83.3
0.19% connection.go
Jobs
ID Job ID Ran Files Coverage
1 34838107314.1 14 Sep 2026 11:35AM UTC 19
76.47
GitHub Action Run
Source Files on build 34838107314
  • Tree
  • List 19
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #603
  • PR Base - master (#34491877395)
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