https://github.com/thinkaurelius/titan
Revision a949c53623097f2680fa6a69d866d35a91430f11 authored by Dan LaRocque on 29 April 2015, 06:49:36 UTC, committed by Dan LaRocque on 29 April 2015, 18:23:43 UTC
This assertion seems to fail whenever I have an existing TTL and want
to change the TTL value.  For example, this fails on titan09, which
doesn't yet have any of the #981-related TTL tweaks immediately
preceding this one in the git history.  Remember to `export
JAVA_OPTIONS='-ea'` before running gremlin.sh to enable assertions.

g = TitanFactory.open('conf/titan-berkeleyje.properties')
m = g.openManagement()
m.setTTL(m.makeEdgeLabel('el').make(), 1, java.util.concurrent.TimeUnit.SECONDS)
m.commit()
m = g.openManagement()
// Assertion fails on this setTTL invocation
m.setTTL(m.getEdgeLabel('el'), 2, java.util.concurrent.TimeUnit.SECONDS)

I think we never noticed this in practice because nobody runs with
assertions enabled.  I only stumbled across this by accident when
working on new TTL tests in TitanGraphTest.

I'm not sure if this commit is actually safe.  Needs review.

For #981
1 parent 4fcb6cb
History
Tip revision: a949c53623097f2680fa6a69d866d35a91430f11 authored by Dan LaRocque on 29 April 2015, 06:49:36 UTC
Weaken assertion in AbstractVertex.remove
Tip revision: a949c53

README.textile

back to top