JanusGraph / JanusGraph/janusgraph

Transaction cache cannot be disabled

Open
#1,033 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.8k
Forks
1.2k
Avg merge
13h 53m
Merged PRs (30d)
6

Description

Tested on JanusGraph-HBase 0.2.0

One would expect the transaction cache to be disabled when "storage.transactions=false" is set, but this is not the case. Disabling can be useful while doing performance tests. It is not a big deal because a simple workaround is to issue a g.tx().close() after each query.

Related to this, it is not documented that the transaction cache size is 100 at minimum, so the following does not work either for disabling the transaction cache:
cache.tx-cache-size = 0
cache.tx-dirty-size = 0

Contributor guide

Open the contributing guide

Research direction

Start by tracing how the storage.transactions setting and cache.tx-cache-size/cache.tx-dirty-size options are handled in the transaction cache configuration. Verify the documented minimum cache size and the behavior when storage.transactions=false, then add or run tests showing that the cache can be disabled and that the configuration is documented accurately.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.