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

Add a forget operation to the transaction subsystem tooling

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 11.0.0.Alpha1
    • 10.1.0.CR1
    • Transactions
    • None
    • Hide
      The transactions tooling operation to remove heuristically completed XA resource participants from transaction logs previously (to this release) did not invoke the forget operation on the resource. This call is useful since it facilitates clean up. In this release the forget operation is called when removing such participants. However, by default the result of the forget call is ignored and even if it fails the log is still removed. To override this behaviour the administrator can set a system property called ignoreMBeanHeuristics to the value false. With this value set participants will not be removed from the log if the forget call is unsuccessful.
      Show
      The transactions tooling operation to remove heuristically completed XA resource participants from transaction logs previously (to this release) did not invoke the forget operation on the resource. This call is useful since it facilitates clean up. In this release the forget operation is called when removing such participants. However, by default the result of the forget call is ignored and even if it fails the log is still removed. To override this behaviour the administrator can set a system property called ignoreMBeanHeuristics to the value false. With this value set participants will not be removed from the log if the forget call is unsuccessful.

      The CLI tooling provides two features for dealing with heuristic participants:

      • a recover command that will move it back into the prepared state if the admin thinks a second prepare attempt is likely to succeed;
      • a delete operation if the admin thinks it safe to do so;

      In the case of XA resources we also need a forget operation which will trigger the resource adaptor to clean up its end instead of relying on the admin to use tooling provided by the RA to clean up.

              rhn-engineering-mmusgrov Michael Musgrove
              rhn-engineering-mmusgrov Michael Musgrove
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: