Skip to main content



      Home
Home » Modeling » EMF » [CDO]LastCommitTime can not be saved
[CDO]LastCommitTime can not be saved [message #632192] Tue, 12 October 2010 00:35 Go to next message
Eclipse UserFriend
Hello,
DBStore will save some properties to database when it "doDeactivate()". But
when CDO Server is shut down abnormally, the last commit time will not be
saved. This will cause OfflineClone can not sync properly after CDO Server
restart. How to solve this problem?
Re: [CDO]LastCommitTime can not be saved [message #632193 is a reply to message #632192] Tue, 12 October 2010 00:49 Go to previous messageGo to next message
Eclipse UserFriend
Am 12.10.2010 06:35, schrieb lu.xingxiao:
> Hello,
> DBStore will save some properties to database when it "doDeactivate()". But when CDO Server is shut down abnormally, the last commit time will not be saved. This will cause OfflineClone can not sync properly after CDO Server restart. How to solve this problem?
I thought this problem has been solved right before Helios GA:

316867: Raw replication fails after recovering from non-graceful shutdown
https://bugs.eclipse.org/bugs/show_bug.cgi?id=316867

What version of CDO are you using?

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO]LastCommitTime can not be saved [message #632194 is a reply to message #632192] Tue, 12 October 2010 00:53 Go to previous messageGo to next message
Eclipse UserFriend
Am 12.10.2010 06:35, schrieb lu.xingxiao:
> Hello,
> DBStore will save some properties to database when it "doDeactivate()". But when CDO Server is shut down abnormally, the last commit time will not be saved. This will cause OfflineClone can not sync properly after CDO Server restart. How to solve this problem?

Can you try to set a breakpoint here: org.eclipse.emf.cdo.server.internal.db.DBStore.reStart()
And find out if the last lines are executed and what they're doing:

long lastCommitTime = DBUtil.selectMaximumLong(connection, CDODBSchema.COMMIT_INFOS_TIMESTAMP);
setLastCommitTime(lastCommitTime);

long lastNonLocalCommitTime = DBUtil.selectMaximumLong(connection, CDODBSchema.COMMIT_INFOS_TIMESTAMP,
CDOBranch.MAIN_BRANCH_ID + "<=" + CDODBSchema.COMMIT_INFOS_BRANCH);
setLastNonLocalCommitTime(lastNonLocalCommitTime);

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
Re: [CDO]LastCommitTime can not be saved [message #632203 is a reply to message #632194] Tue, 12 October 2010 01:38 Go to previous messageGo to next message
Eclipse UserFriend
Thank you, Eike. I'm using CDO3.0.0v20100614-1654, I will update it.


> Am 12.10.2010 06:35, schrieb lu.xingxiao:
>> Hello,
>> DBStore will save some properties to database when it "doDeactivate()".
>> But when CDO Server is shut down abnormally, the last commit time will
>> not be saved. This will cause OfflineClone can not sync properly after
>> CDO Server restart. How to solve this problem?
>
> Can you try to set a breakpoint here:
> org.eclipse.emf.cdo.server.internal.db.DBStore.reStart()
> And find out if the last lines are executed and what they're doing:
>
> long lastCommitTime = DBUtil.selectMaximumLong(connection,
> CDODBSchema.COMMIT_INFOS_TIMESTAMP);
> setLastCommitTime(lastCommitTime);
>
> long lastNonLocalCommitTime = DBUtil.selectMaximumLong(connection,
> CDODBSchema.COMMIT_INFOS_TIMESTAMP,
> CDOBranch.MAIN_BRANCH_ID + "<=" + CDODBSchema.COMMIT_INFOS_BRANCH);
> setLastNonLocalCommitTime(lastNonLocalCommitTime);
>
> Cheers
> /Eike
>
> ----
> http://www.esc-net.de
> http://thegordian.blogspot.com
> http://twitter.com/eikestepper
>
>
Re: [CDO]LastCommitTime can not be saved [message #632232 is a reply to message #632203] Tue, 12 October 2010 04:03 Go to previous message
Eclipse UserFriend
Am 12.10.2010 07:38, schrieb lu.xingxiao:
> Thank you, Eike. I'm using CDO3.0.0v20100614-1654, I will update it.

Apologies, there was a wrong auto-comment on the bugzilla (as Pascal pointed out)!

Although 3.0 GA was on June 29, the final GA build was already on June 14, one
day before this fix was committed.

Hence this fix was first released with SR1.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



>
>
>> Am 12.10.2010 06:35, schrieb lu.xingxiao:
>>> Hello,
>>> DBStore will save some properties to database when it "doDeactivate()". But when CDO Server is shut down abnormally, the last commit time will not be saved. This will cause OfflineClone can not sync properly after CDO Server restart. How to solve this problem?
>>
>> Can you try to set a breakpoint here: org.eclipse.emf.cdo.server.internal.db.DBStore.reStart()
>> And find out if the last lines are executed and what they're doing:
>>
>> long lastCommitTime = DBUtil.selectMaximumLong(connection, CDODBSchema.COMMIT_INFOS_TIMESTAMP);
>> setLastCommitTime(lastCommitTime);
>>
>> long lastNonLocalCommitTime = DBUtil.selectMaximumLong(connection, CDODBSchema.COMMIT_INFOS_TIMESTAMP,
>> CDOBranch.MAIN_BRANCH_ID + "<=" + CDODBSchema.COMMIT_INFOS_BRANCH);
>> setLastNonLocalCommitTime(lastNonLocalCommitTime);
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>>
>>
Previous Topic:Fwd: Re: RCP & EMF Compare
Next Topic:inheritance from own defined EDataType
Goto Forum:
  


Current Time: Wed Jul 23 21:50:17 EDT 2025

Powered by FUDForum. Page generated in 0.04091 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top