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

Transaction subsystem CMR configuration defines optional attributes but they are handled as required

    Details

    • Steps to Reproduce:
      Hide

      Start the WildFly (e.g. 20) and define CMR resource with only two attributes of the 'xid-location'

      ./bin/standalone.sh -c
      ./bin/jboss-cli.sh -c --commands='/subsystem=transactions/commit-markable-resource="java:jboss/datasources/ExampleDS":add(immediate-cleanup=false, batch-size=30), :reload'
      
      Show
      Start the WildFly (e.g. 20) and define CMR resource with only two attributes of the 'xid-location' ./bin/standalone.sh -c ./bin/jboss-cli.sh -c --commands= '/subsystem=transactions/commit-markable-resource= "java:jboss/datasources/ExampleDS" :add(immediate-cleanup= false , batch-size=30), :reload'

      Description

      The subsystem=transactions/commit-markable-resource=... defines the three attributes (https://github.com/wildfly/wildfly/blob/20.0.0.Final/transactions/src/main/resources/schema/wildfly-txn_5_0.xsd#L316) and all of them are defined as optional. But when the server is configured only with some of them it fails with

      16:56:57,894 ERROR [org.jboss.as.controller] (Controller Boot Thread) 
      
      OPVDX001: Validation error in standalone.xml -----------------------------------
      |
      |  476:     <commit-markable-resources>
      |  477:         <commit-markable-resource jndi-name="java:jboss/datasources/ExampleDS">
      |  478:             <xid-location batch-size="30" immediate-cleanup="false"/>
      |                   ^^^^ 'xid-location' is missing one or more required attributes
      |                        
      |                        All of the following are required: name 
      |
      |  479:         </commit-markable-resource>
      |  480:     </commit-markable-resources>
      |  481: </subsystem>
      |
      | The primary underlying error message was:
      | > ParseError at [row,col]:[478,21]
      | > Message: WFLYCTL0133: Missing required attribute(s): name
      |
      |-------------------------------------------------------------------------------
      
      ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration
              at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:143)
              at org.jboss.as.server.ServerService.boot(ServerService.java:395)
              at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:416)
              at java.lang.Thread.run(Thread.java:748)
      
      FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ochaloup Ondrej Chaloupka
                Reporter:
                ochaloup Ondrej Chaloupka
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: