Greetings Luca / Andrey
We are storing a map of <String,Double> in some vertices. When we retrieve
the map after storing it, the map it returns is often not identical as the
one we put in. The function for retrieving the property is outlined below.
The problem seems intermittent, and nothing is being written to the
database after writing the initial data. Any ideas on why this would be
the case? We are using Orient 2.1.15.
Object getProperty(OrientElement element, String key) {
Object object = null;
if (element != null && key != null) {
OrientGraph graph = (OrientGraph) getGraph();
try {
ORID orid = element.getRecord().getIdentity();
int attempt = 0;
while(attempt < Database.MAX_ATTEMPTS) {
try {
return graph.getElement(orid).getProperty(key);
} catch(ONeedRetryException e) {
attempt++;
graph.getElement(orid).reload();
if (attempt == Database.MAX_ATTEMPTS) {
logger.debug("cant load property from element: "+e.getMessage());
}
}
}
} finally {
graph.shutdown();
}
}
return object;
--
---
You received this message because you are subscribed to the Google Groups
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.