graph:remove() does not remove all triples in mdb store #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Given a graph
grin MDB store with 48 triples:It takes several attempts (some times more than 2) to clear all triples. Note that the
remove()function returns the number of triples that should have been removed.This does not seem to affect the hash table store.
The number of triples left behind is consistent across repetitions. It changes depending on the number of triples present.
Also, this only happens if all the arguments are not passed or are nil. Adding any term that is common to all triples results in a full removal.
https://git.knowledgetx.com/scossu/volksdata/src/branch/master/test/test_graph.c#L585 passes, which seems to confirm that the issue is not with the underlying C library.
A test generating the same number of random triples fails with different counts.
Actually, a new test with randomized values revealed that this problem is also present in the C library. Moving diagnosis one level lower.
Fixed in
7e424d1889.