<div dir="ltr"><span style="font-size:12.8px">Hello,</span><div style="font-size:12.8px"><br></div><div><span style="font-size:12.8px">Has anyone have a problem with synchronization on JBoss cluster? </span><br clear="all"><div><div dir="ltr"><p style="font-size:12.8px;background-image:initial;background-repeat:initial">Recently I&#39;ve noticed that some synchronization ends with error:</p><p style="font-size:12.8px;background-image:initial;background-repeat:initial"><i style="font-family:Calibri,sans-serif;font-size:14.6667px"><span lang="EN-GB">javax.persistence.OptimisticLockException: Batch update returned unexpected row count from update [0]; actual row count: 0; expected: 1 </span></i></p><p style="background-image:initial;background-repeat:initial"><font face="Calibri, sans-serif"><span style="font-size:14.6667px">If synchronization is started manually there is no problem with the feature.</span></font></p><p style="background-image:initial;background-repeat:initial"><font face="Calibri, sans-serif"><span style="font-size:14.6667px">I think that it can be a </span></font><span style="font-size:14.6667px;font-family:Calibri,sans-serif">problem with scheduled job synchronization on cluster. </span><span style="font-family:Calibri,sans-serif;font-size:14.6667px">BasicTimerProvider uses simple, not synchronized java timers and it can cause race condition on database.</span></p><p style="font-size:12.8px;background-image:initial;background-repeat:initial"><a name="-1823778648_-1687339515_-879073422_UNIQUE_ID_SafeHtmlFilter__MailAutoSig" style="color:rgb(34,34,34)"><span style="font-size:8pt;font-family:Tahoma,sans-serif"><font color="#000000">Lukasz Skierkowski</font></span></a></p></div></div></div>
</div>