Hi, Thank you for your report. It will be fixed at given issue https://github.com/orientechnologies/orientdb/issues/2874 . So we will not need to do rollback on file level.
On Mon, Dec 8, 2014 at 10:11 PM, Adithyan K <[email protected]> wrote: > Team, > > Used OrientVersion : 2.0-M3 > > > This is my observation. ODatabaseDocumentTx.commit() takes around 4 > seconds for some number of documents if the commit is successful. But, when > the ORecordDuplicateException is thrown by the commit() method, this > method takes around 30 seconds for the same number of records. When I > perform commit, during the ORecordDuplicateException, the > ODatabaseDocumentTx.commit() internally calls rollback method and this > takes more than 95% of the time. > > With JMC, when I analysed, I found that the ODiskWriteAheadLog.readRecord( > OLogSequenceNumber) method's synchronized(rndFile) statement is blocking > my writing Thread for more than 90% of the time of the commit() method. Pls > find the attached screenshot. > > Another input is : Only one Thread in my application writes in to > OrientDB. > > So, I have doubt who else has acquired the monitor of rndFile for so long > time that too only during rollback call inside commit(). When there is no > duplication issue, entire commit() successfully returns within 4 seconds. > > Expecting feedback whether I am able to present my point.. > Pls revert to me if I have to give any other information > > I am also trying to take thread dump during this rollback time to check > which Thread has acquired this rndFile... I will give further inputs on > this I am successful on this. > > Reg, > > K Adithyan > > > > -- > > --- > 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. > -- Best regards, Andrey Lomakin. -- --- 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.
