Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4F29010AA0 for ; Wed, 2 Oct 2013 11:17:27 +0000 (UTC) Received: (qmail 56286 invoked by uid 500); 2 Oct 2013 11:17:27 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 56183 invoked by uid 500); 2 Oct 2013 11:17:26 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 56090 invoked by uid 99); 2 Oct 2013 11:17:25 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Oct 2013 11:17:25 +0000 Date: Wed, 2 Oct 2013 11:17:25 +0000 (UTC) From: "Joe Luo (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMQ-4645) The lease-database-locker does not work properly slave broker ssytem clock is behind Database server MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13783838#comment-13783838 ] Joe Luo commented on AMQ-4645: ------------------------------ The subject title of this JIRA is a bit misleading and it should be "The lease-database-locker does not work properly slave broker system clock is ahead of Database server". So it was a problem only when the slave broker system clock is ahead of the Database server but not behind. > 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} > > > > > > > {code} > The problem is that the negative diff is being treated as a positive diff. -- This message was sent by Atlassian JIRA (v6.1#6144)