Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-12146

DuplicateServiceException when switching singleton election policy in a batch

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.1.0.ER2
    • Clustering
    • None

      [rhusar@syrah wildfly-11.0.0.Beta1-SNAPSHOT]$ cat a.cli
      batch
      /subsystem=singleton/singleton-policy=default/election-policy=simple:remove(){allow-resource-service-restart=true}
      /subsystem=singleton/singleton-policy=default/election-policy=random:add(){allow-resource-service-restart=true}
      run-batch
      [rhusar@syrah wildfly-11.0.0.Beta1-SNAPSHOT]$ ./bin/jboss-cli.sh -c --file=a.cli
      The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error):
      WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
      Step: step-2
      Operation: /subsystem=singleton/singleton-policy=default/election-policy=random:add(){allow-resource-service-restart=true}
      Failure: WFLYCTL0158: Operation handler failed: org.jboss.msc.service.DuplicateServiceException: Service org.wildfly.clustering.singleton.policy.election.default is already registered
      

            rhn-engineering-rhusar Radoslav Husar
            rhn-engineering-rhusar Radoslav Husar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: