Hi there,

My adventures with changing DB schema during populating it, are going on...

I spotted 3 threads to deadlock when one of them tried to commit a 
transaction, another added index to newly created class property and the 
third one tried to get a DB connection from factory.
Here is snapshots

Thread1

<https://lh4.googleusercontent.com/-uV6dnyH-H1U/Uz18w8y7XbI/AAAAAAAANIg/RXUxYmczTys/s1600/thread-1.png>
Thread 2

<https://lh3.googleusercontent.com/-qQ4A91B-2LU/Uz187OCNKPI/AAAAAAAANIo/b06UAQs3IkY/s1600/thread-4.png>
Thread 3

<https://lh6.googleusercontent.com/-lY8xnu_TlEU/Uz1_J2-JNzI/AAAAAAAANI0/AU66cR42YTc/s1600/thread-2.png>


In 10 minutes I got this exception

03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.throwSerializedException(OChannelBinaryAsynchClient.java:264)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.handleStatus(OChannelBinaryAsynchClient.java:231)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:202)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.enterprise.channel.binary.OChannelBinaryAsynchClient.beginResponse(OChannelBinaryAsynchClient.java:113)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.client.remote.OStorageRemote.beginResponse(OStorageRemote.java:1952)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.client.remote.OStorageRemote.command(OStorageRemote.java:983)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.client.remote.OStorageRemoteThread.command(OStorageRemoteThread.java:433)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:59)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.index.OIndexManagerRemote.createIndex(OIndexManagerRemote.java:58)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.index.OIndexManagerRemote.createIndex(OIndexManagerRemote.java:75)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.index.OIndexManagerProxy.createIndex(OIndexManagerProxy.java:69)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.metadata.schema.OClassImpl.createIndex(OClassImpl.java:1233)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.metadata.schema.OClassImpl.createIndex(OClassImpl.java:1179)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.metadata.schema.OClassImpl.createIndex(OClassImpl.java:1175)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.metadata.schema.OClassAbstractDelegate.createIndex(OClassAbstractDelegate.java:237)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
dejavu.indexer.epersona_gdb.Database.addType(Database.java:197)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
dejavu.indexer.epersona_gdb.Database.validateType(Database.java:137)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
dejavu.indexer.epersona_gdb.ePersonaGraphIndexer.readDocument(ePersonaGraphIndexer.java:151)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
dejavu.indexer.epersona_gdb.ePersonaGraphIndexer.readDocuments(ePersonaGraphIndexer.java:81)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
dejavu.indexer.epersona_gdb.ePersonaGraphIndexer.processFile(ePersonaGraphIndexer.java:60)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
dejavu.indexer.XMLFileReader.call(XMLFileReader.java:100)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
dejavu.indexer.XMLFileReader.call(XMLFileReader.java:25)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
java.util.concurrent.FutureTask.run(FutureTask.java:273)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
java.lang.Thread.run(Thread.java:804)
03 Apr 2014 11:18:03 - decapper - INFO - Caused by: 
com.orientechnologies.common.concur.OTimeoutException: Timeout on acquiring 
shared lock against resource of class : class 
com.orientechnologies.common.concur.resource.OSharedResourceAdaptiveExternal 
with timeout=600000
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.common.concur.resource.OSharedResourceAdaptive.acquireSharedLock(OSharedResourceAdaptive.java:120)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.common.concur.resource.OSharedResourceAdaptiveExternal.acquireSharedLock(OSharedResourceAdaptiveExternal.java:40)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage.getPhysicalClusterNameById(OLocalPaginatedStorage.java:1770)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.db.raw.ODatabaseRaw.getClusterNameById(ODatabaseRaw.java:385)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.db.ODatabaseWrapperAbstract.getClusterNameById(ODatabaseWrapperAbstract.java:195)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.index.OIndexManagerShared.createIndex(OIndexManagerShared.java:158)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.index.OIndexManagerProxy.createIndex(OIndexManagerProxy.java:74)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.sql.OCommandExecutorSQLCreateIndex.execute(OCommandExecutorSQLCreateIndex.java:218)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.sql.OCommandExecutorSQLDelegate.execute(OCommandExecutorSQLDelegate.java:57)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.storage.OStorageEmbedded.executeCommand(OStorageEmbedded.java:96)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.storage.OStorageEmbedded.command(OStorageEmbedded.java:85)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.core.command.OCommandRequestTextAbstract.execute(OCommandRequestTextAbstract.java:59)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.command(ONetworkProtocolBinary.java:1329)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.executeRequest(ONetworkProtocolBinary.java:321)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.orient.server.network.protocol.binary.OBinaryNetworkProtocolAbstract.execute(OBinaryNetworkProtocolAbstract.java:126)
03 Apr 2014 11:18:03 - decapper - INFO -        at 
com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:45)

Would be great to have a comment from development team regarding this 
behavior. Al stack traces are visible from snapshots.

Thanks!

-Andrey

-- 

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