Re: Caused by: org.janusgraph.diskstorage.locking.PermanentLockingException: Expected value mismatch for KeyColumn

"" <priyanka...@...>

One more thing which i observed is if in the same transaction I try to  change the objId property of vertices which has same value for objId, then commit is successful. But if i change the value in different transactions then it is failing with permanent locking exception again?
Any idea on what could be the reason for this?

On Monday, November 23, 2020 at 5:30:59 PM UTC+5:30 priy...@... wrote:

I have multiple indexes in the graph. One of them is on the  property objId of the vertex. This index is unique. Even then i can see more than one vertices in the graph with same objId, when i fire query.
But when query is fired which uses objId index then only one vertex is fetched. This means all vertices with same id can be fetched by using other query patterns but using objId index query only one is fetched. 

So now if I try to delete such vertices i am getting following exception:
Caused by: org.janusgraph.diskstorage.locking.PermanentLockingException: Expected value mismatch for KeyColumn [k=0x 76- 15-191-228- 29-137-160- 79-114- 97- 99-108-101- 95- 66- 68- 77- 58- 47- 47- 81- 65- 49- 50- 67- 82- 49- 47- 83- 71- 83- 65- 77- 80- 76- 69- 68- 66- 47-114-101-102-116- 97-110-118-105- 47- 69- 77- 80- 78- 65- 77-197, c=0x  0]: expected=[ 24- 30- 57-200] vs actual=[ 17- 35- 28-152] (store=graphindex)
        at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingTransaction.checkSingleExpectedValueUnsafe(
        at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingTransaction.access$000(
        at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingTransaction$
        at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingTransaction$
        at org.janusgraph.diskstorage.util.BackendOperation.executeDirect(
        at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingTransaction.checkSingleExpectedValue(
        at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingTransaction.checkAllExpectedValues(
        at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingTransaction.prepareForMutations(
        at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingStoreManager.mutateMany(
        at org.janusgraph.diskstorage.keycolumnvalue.cache.CacheTransaction$
        at org.janusgraph.diskstorage.keycolumnvalue.cache.CacheTransaction$
        at org.janusgraph.diskstorage.util.BackendOperation.executeDirect(
        at org.janusgraph.diskstorage.util.BackendOperation.execute(

Is there a way to delete such vertices from graph now?

Join to automatically receive all group messages.