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

gephi / graphstore / #654
92%

Build:
DEFAULT BRANCH: master
Ran 25 Oct 2026 01:12PM UTC
Jobs 1
Files 129
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

25 Oct 2026 01:09PM UTC coverage: 91.898% (+0.002%) from 91.896%
#654

push

web-flow
Add timed read acquisition and queue diagnostics to GraphLock (#294)

* Add timed acquisition and queue diagnostics to GraphLock

GraphLock exposed only unbounded, non-interruptible lock() calls, so a
caller that cannot afford to wait indefinitely had no option in the
public API. This adds tryReadLock and tryWriteLock with a timeout, plus
getReadLockCount, isWriteLocked, and getQueueLength for monitoring,
each delegating to the underlying ReentrantReadWriteLock. New methods
are default methods on the interface so existing implementations keep
compiling. Javadoc on readLock now states the consequence of holding a
read lock across a cross-thread wait or abandoning an auto-locking
iterator. Fixes #282.

* Harden the GraphLock timed read acquisition API and drop tryWriteLock

- Drop tryWriteLock for now: a queued timed writer stalls every new reader for as long as it waits, and retrying with a short timeout can starve the writer. The need for it is yet to be assessed.
- Make the new GraphLock methods abstract, GraphLockImpl is the only implementation, so callers don't have to handle UnsupportedOperationException.
- Document that a zero timeout tryReadLock fails behind a queued writer only for threads that don't already hold the lock, that a pending interrupt throws on entry, that nothing may touch the graph after a failed attempt, and that isWriteLocked is for monitoring only.
- Test that a queued writer blocks a new tryReadLock, that an interrupted tryReadLock leaves no waiter, and that a holder's zero timeout tryReadLock still succeeds.
- Make the new tests wait for the thread to be parked and not leave threads behind on failure, as well as the queue length test.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Mathieu Bastian <mathieu.bastian@gmail.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

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

12364 of 13454 relevant lines covered (91.9%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #654.1 25 Oct 2026 01:12PM UTC 129
91.9
Source Files on build #654
  • Tree
  • List 129
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 08dc2759 on github
  • Prev Build on master
  • Next Build on master
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