Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-169

TXMBeaanStats sample script is using wrong keys and invalid method name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.6.0
    • 1.5.2
    • Samples
    • None
    • Hide

      Patch the script replacing strings of the form "TX XXX request" with the corresponding string "TX XXX"

      Add a JBoss specific rule to count TX begins e.g. inject a counting rule into BaseTransaction.begin.

      Show
      Patch the script replacing strings of the form "TX XXX request" with the corresponding string "TX XXX" Add a JBoss specific rule to count TX begins e.g. inject a counting rule into BaseTransaction.begin.

    Description

      The sample script for counting TX events is using inconsistent keys in the counting rules and in the key set return rule. All keys entered into the keyset are labelled using a String of the form "TX XXX" while the corresponding counter rules use a key of the form "TX XXX request". Also, each insertion of key "TX Rollback" in the key set return rule is duplicated unnecessarily.

      The script also tries to track Transaction begin operations by injecting code into a non-existent method Transaction.begin(). Of course, begin operations are implemented by creating instances of the class implementing Transaction, not by calling a begin method defined by this interface. Unfortunately, we cannot fix this by injecting code into either UserTransaction.begin or TransactionManager.begin as the clsses which implement each respective interface inherit their bein method from a common parent which implements neither interface. Fixing this will require the use of a JBoss AS specific rule.

      Attachments

        Activity

          People

            rhn-engineering-adinn Andrew Dinn
            nickman_jira Nicholas Whitehead (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: