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

Transaction subsystem log-store transactions attributes are read-only attributes

    XMLWordPrintable

Details

    Description

      The transactions subsystem defines attributes of the log-store transactions resource as read-write[1]. That's incorrect as the transactions are runtime attributes which are loaded as a snapshot of the Narayana object store. There are meant to just display the content and there is no way (and no processing reason) how to write the values back to the object store.

      The log-store transactions attributes age-in-seconds, id, jmx-name, type should be defined as read-only.

      [1]

      {
        "outcome" => "success",
        "result" => {
          "description" => "The persistent information that the transaction manager stores for the purpose of recovering a transaction in the event of failure. The probe operation will add and remove transactions 
      from the model as the corresponding real transactions start and finish the prepare and commit phases. A stuck transaction will remain in the model until either it is completed or explicitly removed by the delete
       operation.",
          "storage" => "runtime-only",
          "attributes" => {
            "age-in-seconds" => {
              "type" => LONG,
              "description" => "The time since this transaction was prepared or when the recovery system last tried to recover it.",
              "expressions-allowed" => false,
              "required" => false,
              "nillable" => true,
              "unit" => "SECONDS",
              "access-type" => "read-write",
              "storage" => "configuration",
              "restart-required" => "no-services"
            },
            "id" => {
              "type" => STRING,
              "description" => "The id of this transaction.",
              "expressions-allowed" => false,
              "required" => false,
              "nillable" => true,
              "min-length" => 1L,
              "max-length" => 2147483647L,
              "access-type" => "read-write",
              "storage" => "configuration",
              "restart-required" => "no-services"
            },
            "jmx-name" => {
              "type" => STRING,
              "description" => "The JMX name of this transaction.",
              "expressions-allowed" => false,
              "required" => false,
              "nillable" => true,
              "min-length" => 0L,
              "max-length" => 2147483647L,
              "access-type" => "read-write",
              "storage" => "configuration",
              "restart-required" => "no-services"
            },
            "type" => {
              "type" => STRING,
              "description" => "The type name under which this record is stored.",
              "expressions-allowed" => false,
              "required" => false,
              "nillable" => true,
              "min-length" => 1L,
              "max-length" => 2147483647L,
              "access-type" => "read-write",
              "storage" => "configuration",
              "restart-required" => "no-services"
            }
          },
          "operations" => undefined,
          "notifications" => undefined,
          "children" => {"participants" => {
            "description" => "The resources that did work in a transaction.",
            "model-description" => undefined
          }}
        }
      }
      
      

      Attachments

        Activity

          People

            ochaloup@redhat.com Ondrej Chaloupka (Inactive)
            ochaloup@redhat.com Ondrej Chaloupka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: