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

ovn-kubernetes / libovsdb / 21728327703
50%
main: 50%

Build:
Build:
LAST BUILD BRANCH: wherecachetyped
DEFAULT BRANCH: main
Ran 05 Feb 2026 09:04PM UTC
Jobs 1
Files 73
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

05 Feb 2026 09:00PM UTC coverage: 50.49% (+0.1%) from 50.345%
21728327703

Pull #458

github

booxter
client: fix race condition in Echo() function

The Echo() function had a race condition where it would fall through
and access the reply variable after CallWithContext() returned an error
(other than ErrShutdown). This caused a data race between the calling
goroutine reading reply in reflect.DeepEqual() and the RPC readLoop
goroutine potentially still writing to it during JSON unmarshaling.

The fix adds the missing error return, matching the pattern used in
all other RPC call sites (transact, getSchema, listDbs, etc).

Race detector output before fix:
==================
WARNING: DATA RACE
Write at reflect.Value.grow() during json.Unmarshal()
  github.com/cenkalti/rpc2.(*Client).readLoop()

Previous read at:
  github.com/ovn-kubernetes/libovsdb/client.(*ovsdbClient).Echo()
  if !reflect.DeepEqual(args, reply) {  // Line 1095
==================

The race is reliably reproduced by the new TestEchoRace test which
runs concurrent Echo() calls while triggering disconnects/reconnects.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Pull Request #458: client: fix race condition in Echo() function

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

2 existing lines in 1 file now uncovered.

6444 of 12763 relevant lines covered (50.49%)

174.85 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
75.77
1.66% client/client.go
Jobs
ID Job ID Ran Files Coverage
1 21728327703.1 05 Feb 2026 09:04PM UTC 73
50.49
GitHub Action Run
Source Files on build 21728327703
  • Tree
  • List 73
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #458
  • PR Base - main (#17909210518)
  • Delete
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