[JBoss JIRA] (JBTM-1020) Consider usings a tool for finding common bugs
by Paul Robinson (JIRA)
Paul Robinson created JBTM-1020:
-----------------------------------
Summary: Consider usings a tool for finding common bugs
Key: JBTM-1020
URL: https://issues.jboss.org/browse/JBTM-1020
Project: JBoss Transaction Manager
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Reporter: Paul Robinson
Assignee: Tom Jenkinson
Fix For: 5.0.0.M2
A recent bug in XTS recovery was found to be caused by the use of == rather than .equals() for String comparison. This type of bug can go unnoticed for a long period of time as == will usually return true for Strings with identical contents. However, it is not guaranteed.
I think it would be handy to run some tool every now and then to look for these types of bugs. I'm not sure how feasible this would be as it may return too many false positives.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (JBTM-1127) tx-object-store not empty after running TestATSubordinateCrashDuringPrepare XTS recovery test
by Paul Robinson (JIRA)
Paul Robinson created JBTM-1127:
-----------------------------------
Summary: tx-object-store not empty after running TestATSubordinateCrashDuringPrepare XTS recovery test
Key: JBTM-1127
URL: https://issues.jboss.org/browse/JBTM-1127
Project: JBoss Transaction Manager
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: XTS
Reporter: Paul Robinson
Assignee: Paul Robinson
Fix For: 5.0.0.M2
The following assertion fails when the test completes with transaction logs stil present in the tx-object-store.
{code}
-------------------------------------------------------------------------------
Test set: com.arjuna.qa.junit.TestATSubordinateCrashDuringPrepare
-------------------------------------------------------------------------------
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 79.706 sec <<< FAILURE!
subordinateMultiParticipantPrepareAndCommitTest(com.arjuna.qa.junit.TestATSubordinateCrashDuringPrepare) Time elapsed: 79.694 sec <<< FAILURE!
java.lang.AssertionError
at org.junit.Assert.fail(Assert.java:92)
at org.junit.Assert.assertTrue(Assert.java:43)
at org.junit.Assert.assertTrue(Assert.java:54)
at com.arjuna.qa.junit.BaseCrashTest.tearDown(BaseCrashTest.java:94)
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (JBTM-1071) XTS crash recovery tests hang periodically
by Paul Robinson (JIRA)
Paul Robinson created JBTM-1071:
-----------------------------------
Summary: XTS crash recovery tests hang periodically
Key: JBTM-1071
URL: https://issues.jboss.org/browse/JBTM-1071
Project: JBoss Transaction Manager
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: XTS
Reporter: Paul Robinson
Assignee: Paul Robinson
Fix For: 4.16.3, 5.0.0.M2
I ran the crash recovery tests 3 times, they all hung at different times. It wasn't clear to me what the server was doing when it hung. For example, it wasn't being polled for a crash, or re-attempting recovery in a cycle. The problem can be recreated by running all the tests in one go:
{code}
cd ./XTS/sar/crash-recovery-tests
mvn test
{code}
I tried running each JUnit test one at a time, and none of them hung. This can be done as follows:
{code}
for i in $(ls src/test/java/com/arjuna/qa/junit/Test*); do TEST=$(echo $i | awk -F '.' '{ print $1 }' | sed 's/\//\./g' | cut -c 15-); mvn test -Dtest=$TEST; done
cat target/surefire-reports/*.txt | grep "Tests run"
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month