Hi All,

I am iterating over all nodes of a given class and then for each of them I 
am iterating over a small subgraph to depth <= 2 using:

Iterable<OIdentifiable> iter = new OTraverse().fields("out_D", "in_D", 
"out_A", "in_A").target( node ).predicate(p);

 for (OIdentifiable id : iter ) {   // <<<=== Exception

}

The loop above throws an exception on certain nodes. When I run from the 
Studio a select on these nodes

select * from #14:151481

I get java.nio.channels.ClosedChannelException. Other nodes work fine.

Any suggestions would be greatly appreciated.

Thank you,
Oleg

Client stack trace:

com.orientechnologies.orient.core.exception.ODatabaseException: Error on 
retrieving record #14:2188914 (cluster: director)
        at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.executeReadRecord(ODatabaseDocumentTx.java:1530)
        at 
com.orientechnologies.orient.core.tx.OTransactionNoTx.loadRecord(OTransactionNoTx.java:79)
        at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.load(ODatabaseDocumentTx.java:1354)
        at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.load(ODatabaseDocumentTx.java:123)
        at 
com.orientechnologies.orient.core.id.ORecordId.getRecord(ORecordId.java:309)
        at 
com.orientechnologies.orient.core.db.record.ridbag.embedded.OEmbeddedRidBag$EntriesIterator.next(OEmbeddedRidBag.java:93)
        at 
com.orientechnologies.orient.core.db.record.ridbag.embedded.OEmbeddedRidBag$EntriesIterator.next(OEmbeddedRidBag.java:65)
        at 
com.orientechnologies.orient.core.command.traverse.OTraverseMultiValueProcess.process(OTraverseMultiValueProcess.java:40)
        at 
com.orientechnologies.orient.core.command.traverse.OTraverseMultiValueProcess.process(OTraverseMultiValueProcess.java:28)
        at 
com.orientechnologies.orient.core.command.traverse.OTraverse.next(OTraverse.java:105)
        at 
com.orientechnologies.orient.core.command.traverse.OTraverse.hasNext(OTraverse.java:75)
        at 
icd.peoplemap.tools.orientdb.DedupDirectors.getCodirectorsAddresses(DedupDirectors.java:190)
        at 
icd.peoplemap.tools.orientdb.DedupDirectors.traverseDirector(DedupDirectors.java:109)
        at 
icd.peoplemap.tools.orientdb.DedupDirectors.readDirectors(DedupDirectors.java:81)
        at 
icd.peoplemap.tools.orientdb.DedupDirectors.main(DedupDirectors.java:37)
Caused by: com.orientechnologies.orient.core.exception.ODatabaseException: 
Error on retrieving record #14:2188914 (cluster: director)
        at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.executeReadRecord(ODatabaseDocumentTx.java:1601)
        at 
com.orientechnologies.orient.core.tx.OTransactionNoTx.loadRecord(OTransactionNoTx.java:80)
        at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.load(ODatabaseDocumentTx.java:1433)
        at 
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.readRecord(ONetworkProtocolBinary.java:1449)
        at 
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:346)
        at 
com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:216)
        at 
com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:65)
Caused by: com.orientechnologies.orient.core.exception.OStorageException: 
Error during read of record with rid = #14:2188914
        at 
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.doReadRecord(OAbstractPaginatedStorage.java:1783)
        at 
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.readRecord(OAbstractPaginatedStorage.java:1412)
        at 
com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.readRecord(OAbstractPaginatedStorage.java:681)
        at 
com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.executeReadRecord(ODatabaseDocumentTx.java:1568)
        ... 6 more


-- 

--- 
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.

Reply via email to