activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Volker Kleinschmidt (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-4645) The lease-database-locker does not work properly slave broker ssytem clock is behind Database server
Date Thu, 12 Nov 2015 07:27:10 GMT

    [ https://issues.apache.org/jira/browse/AMQ-4645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15001792#comment-15001792
] 

Volker Kleinschmidt commented on AMQ-4645:
------------------------------------------

Title is missing "if".

> The lease-database-locker does not work properly slave broker ssytem clock is behind
Database server
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AMQ-4645
>                 URL: https://issues.apache.org/jira/browse/AMQ-4645
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Message Store
>    Affects Versions: 5.8.0
>         Environment: jdbc master slave
>            Reporter: Gary Tully
>            Assignee: Gary Tully
>              Labels: clock, jdbc, lease, masterSlave
>             Fix For: 5.9.0
>
>
> 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.{code}
> <persistenceAdapter>
>         <jdbcPersistenceAdapter dataSource="#oracle-ds" lockKeepAlivePeriod="5000">
>             <locker>
>                 <lease-database-locker lockAcquireSleepInterval="10000"/>
>             </locker>
>         </jdbcPersistenceAdapter>
>     </persistenceAdapter>{code}
> The problem is that the negative diff is being treated as a positive diff.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message