You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
Hi,
Here is test that I wrote and I see it failing due to the fact that if the data order changes,the hash changes and then it thinks that it is new data.
System.out.println("Update is good: " + (Iterables.size(g.query().vertices()) == 4));
this prints false as it creates 5 vertices.
#####received: {name=myVDC}
@@@@@@@@@@@Hashed: {_hash=5099648736912361917, name=myVDC}
#####received: {name=provider, version=1, occupant={name=teannt}}
@@@@@@@@@@@Hashed: {_hash=-7815931700235832755, name=provider, version=1, occupant={name=teannt, _hash=-9217391480162829852}}
#####received: {name=teannt, _hash=-9217391480162829852}
@@@@@@@@@@@Hashed: {name=teannt, _hash=-9217391480162829852}
#####received: {vdc={name=myVDC}, name=RI-vDC_PODPool, occupant={name=provider, occupant={name=teannt}, version=1}}
@@@@@@@@@@@Hashed: {vdc={name=myVDC, _hash=5099648736912361917}, _hash=3462430383314112090, name=RI-vDC_PODPool, occupant={name=provider, occupant={name=teannt, _hash=-9217391480162829852}, version=1, _hash=-1116000336789357522}}
#####received: {name=myVDC, _hash=5099648736912361917}
@@@@@@@@@@@Hashed: {name=myVDC, _hash=5099648736912361917}
#####received: {name=provider, occupant={name=teannt, _hash=-9217391480162829852}, version=1, _hash=-1116000336789357522}
@@@@@@@@@@@Hashed: {name=provider, occupant={name=teannt, _hash=-9217391480162829852}, version=1, _hash=-1116000336789357522}
#####received: {name=teannt, _hash=-9217391480162829852}
@@@@@@@@@@@Hashed: {name=teannt, _hash=-9217391480162829852}
Update is good: false
Graph: {"mode":"NORMAL","vertices":[{"_hash":-9217391480162829852,"name":"teannt","___type":"java.util.LinkedHashMap","_id":"2","_type":"vertex"},{"_hash":-7815931700235832755,"name":"provider","___type":"java.util.LinkedHashMap","version":1,"_id":"1","_type":"vertex"},{"_hash":5099648736912361917,"name":"myVDC","___type":"java.util.LinkedHashMap","_id":"0","_type":"vertex"},{"_hash":-1116000336789357522,"name":"provider","___type":"java.util.LinkedHashMap","version":1,"_id":"6","_type":"vertex"},{"_hash":3462430383314112090,"name":"RI-vDC_PODPool","___type":"java.util.LinkedHashMap","_id":"4","_type":"vertex"}],"edges":[{"_id":"3","_type":"edge","_outV":"1","_inV":"2","_label":"occupant"},{"_id":"7","_type":"edge","_outV":"6","_inV":"2","_label":"occupant"},{"_id":"5","_type":"edge","_outV":"4","_inV":"0","_label":"vdc"},{"_id":"8","_type":"edge","_outV":"4","_inV":"6","_label":"occupant"}]}
From the log you could see that for the provider, since the order changes, the hash changed.
How to fix this issue? Any help is appreciated.
thanks,
The text was updated successfully, but these errors were encountered: