Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6037

DB connection and acquire lock to be retried few times before giving up

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.2.3
    • Component/s: karaf
    • Labels:
    • Environment:

      Apache Karaf 4.0.4

      DB Lock using MySQLJDBCLock.

      Description

      I’m trying to use Karaf HA/failover feature documented here : http://karaf.apache.org/manual/latest/#_ha_failover_and_cluster

      With database lock, I see that Karaf running with the Lock as Active instance is just shutting down upon losing connection with DB.

      I think, it would better if Karaf tries few times to reconnect & acquire lock before doing shutdown. When only one instance of karaf is running and DB connection fluctuates, this behavior impacts availability (needs restart from orchestration layer).

      Note: I'm using start level = 1 and karaf.lock.slave.block = true

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              kajamohideen Kaja Mohideen
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: