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

Rules sometimes are not purged when a transform fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.4.0
    • 1.3.0
    • Trigger Injection
    • None

      Sometimes a rule gets injected into the bytecode but transformation fails because of a later problem (n.b. this usually only happens because of an issue with unrelated code e.g. where a method contains a JSR). In this case a rule key is allocated and used to index the rule in the transformer's rule map. Map entries created during injection are normally recorded in the transform context attached to the rule script. Thsi allows them to be purged from the map when the script is unloaded.

      When transformation fails a record of the failed transform is still attached to the script but this does not identify the rule, making it impossible to purge it. The rule should be purged at the point where the transform is added since there is no benefit keeping it around.

            rhn-engineering-adinn Andrew Dinn
            rhn-engineering-adinn Andrew Dinn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: