Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4645

The lease-database-locker does not work properly if slave broker system clock is behind Database server

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            gtully Gary Tully
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: