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

samuel / go-zookeeper / 204
80%

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

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")

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

1263 of 1556 relevant lines covered (81.17%)

4481.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 204.1 28 Oct 2016 11:25PM UTC 0
81.17
Travis Job 204.1
Source Files on build 204
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #204
  • 1d7be4ef on github
  • Prev Build on master (#193)
  • Next Build on master (#228)
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