JanusGraph / janusgraph-foundationdb

FoundationDB storage adapter for JanusGraph
Other
53 stars 18 forks source link

Multi range queries are retried even if they are successful #14

Closed rngcntr closed 4 years ago

rngcntr commented 4 years ago

https://github.com/JanusGraph/janusgraph-foundationdb/blob/000c6b86d4ce2ccbe73b2e076c21093cf72dba1f/src/main/java/com/experoinc/janusgraph/diskstorage/foundationdb/FoundationDBTx.java#L196-L209

The List retries is initialized to contain all queries as Object arrays. When removing successful queries from the retries list, the algorithm tries to remove an Object instead of an Object[]. As a consequence, successfully executed multi range queries will remain on the retries list.