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

[Release notes] CLI display of transaction heuristics is now more precise

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Documentation
    • None
    • False
    • None
    • False

      As the result of JBEAP-26721 => JBTM-3859, CLI now reports more detailed status of heuristics transactions. Before the change, it reported only HEURISTIC status, but now it reports more precise HEURISTIC_COMMIT, HEURISTIC_ROLLBACK, HEURISTIC_HAZARD or HEURISTIC_MIXED. Additionally, participants are now keyed by jndi-name instead of only numbered list.

      This should be included in RN because it can affect existing scripts or user procedures.

      Before:

      [standalone@localhost:9990 /] /subsystem=transactions/log-store=log-store:read-resource(recursive=true, include-runtime=true)
      
      {
          "outcome" => "success",
          "result" => {
              "expose-all-logs" => false,
              "type" => "default",
              "transactions" => {"0:ffff0a8004bc:-28a3b85d:66fd4682:10" => {
                  "age-in-seconds" => "15",
                  "id" => "0:ffff0a8004bc:-28a3b85d:66fd4682:10",
                  "jmx-name" => undefined,
                  "type" => "StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction",
                  "participants" => {"1" => {
                      "eis-product-name" => undefined,
                      "eis-product-version" => undefined,
                      "jmx-name" => undefined,
                      "jndi-name" => "1",
                      "status" => "HEURISTIC",
                      "type" => "/StateManager/AbstractRecord/XAResourceRecord"
                  }}
              }}
          }
      }
      

      After:

      [standalone@localhost:9990 /] /subsystem=transactions/log-store=log-store:read-resource(recursive=true, include-runtime=true)
      
      {
          "outcome" => "success",
          "result" => {
              "expose-all-logs" => false,
              "type" => "default",
              "transactions" => {"0:ffff0a83027b:49e508a7:66fbc17e:10" => {
                  "age-in-seconds" => "6668",
                  "id" => "0:ffff0a83027b:49e508a7:66fbc17e:10",
                  "jmx-name" => undefined,
                  "type" => "StateManager/BasicAction/TwoPhaseCoordinator/AtomicAction",
                  "participants" => {"java:/MockXAResource" => {
                      "eis-product-name" => "MockXAResource Test",
                      "eis-product-version" => "0.1.Mock",
                      "jmx-name" => undefined,
                      "jndi-name" => "java:/MockXAResource",
                      "status" => "HEURISTIC_ROLLBACK",
                      "type" => "/StateManager/AbstractRecord/XAResourceRecord"
                  }}
              }}
          }
      }
      

              sybrown Symone Simpkins
              msimka@redhat.com Martin Simka
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: