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

samuel / go-zookeeper / 204 / 1
80%
master: 80%

Build:
DEFAULT BRANCH: master
Ran 28 Oct 2016 11:25PM UTC
Files 9
Run time 0s
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

28 Oct 2016 11:23PM UTC coverage: 81.17%. Remained the same
204.1

push

travis-ci

samuel
fix spin in (*Lock).Lock() (#145)

Consider the case where there are two clients contending for a lock.
The first creates  '/lock/00000'
The second creates '/lock/00001'

Now, the first lists the children of '/lock' and sees that it has
created the lock and returns.

The second starts looping through the children in the aforementioned order.
Before the first child is processed we have
lowestSeq=1
prevSeq=0
prevSeqPath=""

Since the first child is '00000' we set lowestSeq=0.
However, prevSeq == s, so the second condition fails and
we don't update the prevSeqPath.

Then we process '00001' and again, since s == seq, so !(s<seq), we again
don't update prevSeqPath.

This leads to a scenario where lowerdown we call GetW("/lock/") instead of GetW("/lock/00000")

1263 of 1556 relevant lines covered (81.17%)

4481.57 hits per line

Source Files on job 204.1
  • Tree
  • List 0
  • Changed 8
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 204
  • Travis Job 204.1
  • 1d7be4ef on github
  • Prev Job for on master (#193.1)
  • Next Job for on master (#228.1)
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