The Byteman rules for the participant completion XTS recovery tests have many rules that are almost duplicates of each other. For example:
The following rules in BACrashDuringCommit could be refactored into a single rule
These can be re-factored in to a rule like this:
This assumes that we have the same numbers for each use of:
Which is usually the case:
Maybe we just override the rule for the one exception. Ideas for what to do here are to be investigated.
Also, the following similar rules are also present in this file:
Which could be replaced with something like this:
We could also re-factor these two rules out into a separate Byteman script and add it to all tests that need it.