Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8706

Singleton deployments does not work in domain mode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 10.1.0.Final
    • Clustering
    • None
    • Centos
      Wildfly 10.1.0.Final (two instances and one domain controller)
      Java 8

    • Hide

      1-config a wildfly domain environment
      2-config a group with the "ha profile"
      3-start server group
      4-add a singleton deploment and assign it to the server group
      5-enable deployment and check server logs

      Show
      1-config a wildfly domain environment 2-config a group with the "ha profile" 3-start server group 4-add a singleton deploment and assign it to the server group 5-enable deployment and check server logs

      In a domain mode, when a deployment is a "singleton deployment" (with a singleton- deployment.xml descriptor), it is working fine if the server nodes are started sequently but fails if it is started from domain console.
      When a deployments needs to be updated, a race condition happens and two instances of the deployment are started.

      From logs:
      node1:
      12:39:48,434 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool – 133) WFLYCLINF0002: Started default cache from server container
      12:39:48,436 INFO [org.wildfly.clustering.server] (notification-thread--p84-t1) WFLYCLSV0003: node1:one elected as the singleton provider of the jboss.deployment.unit."my-deployment.jar".FIRST_MODULE_USE service
      12:39:48,440 INFO [org.wildfly.clustering.server] (notification-thread--p84-t1) WFLYCLSV0001: This node will now operate as the singleton provider of the jboss.deployment.unit."my-deployment.jar".FIRST_MODULE_USE service

      node2:
      12:39:48,370 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool – 122) WFLYCLINF0002: Started default cache from server container
      12:39:48,372 INFO [org.wildfly.clustering.server] (notification-thread--p193-t1) WFLYCLSV0003: node2:two elected as the singleton provider of the jboss.deployment.unit."my-deployment.jar".FIRST_MODULE_USE service
      12:39:48,372 INFO [org.wildfly.clustering.server] (notification-thread--p193-t1) WFLYCLSV0001: This node will now operate as the singleton provider of the jboss.deployment.unit."my-deployment.jar".FIRST_MODULE_USE service

              pferraro@redhat.com Paul Ferraro
              arielcarrera Ariel Carrera (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: