Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
5.8.0
-
jdbc master slave
Description
The lease locker can adjust the lease duration based on the DB current time but this only works if the broker is ahead of the Db.
If the broker is behind, it will always obtain a lease due to incorrect adjustment.
If the clocks are in sync there is no issue.
<persistenceAdapter> <jdbcPersistenceAdapter dataSource="#oracle-ds" lockKeepAlivePeriod="5000"> <locker> <lease-database-locker lockAcquireSleepInterval="10000"/> </locker> </jdbcPersistenceAdapter> </persistenceAdapter>
The problem is that the negative diff is being treated as a positive diff.