Author: clebert.suconic(a)jboss.com
Date: 2009-12-07 10:48:53 -0500 (Mon, 07 Dec 2009)
New Revision: 8608
Modified:
trunk/src/main/org/hornetq/core/journal/impl/JournalImpl.java
trunk/tests/src/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java
Log:
Tweaks to ValidateTransactionHealthTest. Changing System.exit to halt
Modified: trunk/src/main/org/hornetq/core/journal/impl/JournalImpl.java
===================================================================
--- trunk/src/main/org/hornetq/core/journal/impl/JournalImpl.java 2009-12-07 15:10:28 UTC
(rev 8607)
+++ trunk/src/main/org/hornetq/core/journal/impl/JournalImpl.java 2009-12-07 15:48:53 UTC
(rev 8608)
@@ -3255,7 +3255,7 @@
if (leftFiles.size() > 0)
{
- log.warn("Compacted files were left unnatended on journal directory,
deleting invalid files now");
+ log.warn("Temporary files were left unnatended after a crash on journal
directory, deleting invalid files now");
for (String fileToDelete : leftFiles)
{
Modified:
trunk/tests/src/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java
===================================================================
---
trunk/tests/src/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java 2009-12-07
15:10:28 UTC (rev 8607)
+++
trunk/tests/src/org/hornetq/tests/integration/journal/ValidateTransactionHealthTest.java 2009-12-07
15:48:53 UTC (rev 8608)
@@ -313,7 +313,8 @@
System.exit(-1);
}
- System.exit(OK);
+ // Simulating a crash on the system right after the data was committed.
+ Runtime.getRuntime().halt(OK);
}
public static JournalImpl appendData(String journalType,
Show replies by date