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

gephi / graphstore / #656
92%

Build:
DEFAULT BRANCH: master
Ran 25 Oct 2026 01:40PM UTC
Jobs 1
Files 130
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:38PM UTC coverage: 91.912% (-0.04%) from 91.954%
#656

push

web-flow
Return an ElementIterable from the column index get and release its lock (#362)

* Return a snapshot from the column index get and entry iterator

Index.get locked the column index when called and unlocked it when the
iterator was exhausted, so a get that was never iterated or a loop that
broke early kept the lock, and setting an attribute inside the loop could
deadlock with a setter on a view index. Non-indexed, degree and edge type
columns held the graph read lock the same way. get and the entry iterator
now copy the elements under the lock and return the copy.

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

* Return an ElementIterable from the column index get and take the lock when iterating

Index.get took the index lock when called and released it only when the
iterator was exhausted, so a result that was never iterated or a loop that
stopped early kept the lock with no way to release it. Non-indexed, degree
and edge type columns held the graph read lock the same way.

get now returns an ElementIterable, like Graph.getNodes: the lock is taken
when iterator() is called and released when the iterator is exhausted or on
doBreak(). Each iteration takes and releases its own hold, and doBreak after
exhaustion or twice does nothing. The snapshot of the previous commit is
reverted, the entry iterator is unchanged. Code compiled against the
Iterable return type must be recompiled.

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

* Release every open iteration of an index get result and never leak the graph lock

doBreak only released the latest iterator of a result, so nested loops over
the same result kept the outer lock. parallelStream unlocked the lock from a
worker thread. A non-indexed column removed during an iteration of get,
count, values, getMinValue or getMaxValue left the graph read lock held by
the graph iterator.

doBreak now releases every iteration of the result still holding the lock,
parallelStream throws Unsupport... (continued)

145 of 166 new or added lines in 6 files covered. (87.35%)

12466 of 13563 relevant lines covered (91.91%)

0.92 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
80.75
-0.44% src/main/java/org/gephi/graph/impl/ColumnStandardIndexImpl.java
6
90.48
src/main/java/org/gephi/graph/impl/FilteredElementIterable.java
1
97.41
0.69% src/main/java/org/gephi/graph/impl/ColumnNoIndexImpl.java
1
93.82
0.03% src/main/java/org/gephi/graph/impl/IndexImpl.java
Jobs
ID Job ID Ran Files Coverage
1 #656.1 25 Oct 2026 01:40PM UTC 130
91.91
Source Files on build #656
  • Tree
  • List 130
  • Changed 8
  • Source Changed 7
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 9cb346d4 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