db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r889875 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby151Test.java
Date Sat, 12 Dec 2009 01:21:08 GMT
Author: dag
Date: Sat Dec 12 01:21:07 2009
New Revision: 889875

URL: http://svn.apache.org/viewvc?rev=889875&view=rev
Log:
DERBY-4463 JMX test in nightly test suite failed with: JMXTest:clientjava.lang.InterruptedException:


Patch derby-4463-2, which now resets the interrupt flag for the server
threads also before the exception is propagated in the test. Followup
to derby-4463 patch.


Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby151Test.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby151Test.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby151Test.java?rev=889875&r1=889874&r2=889875&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby151Test.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/store/Derby151Test.java
Sat Dec 12 01:21:07 2009
@@ -98,13 +98,6 @@
     protected void tearDown()
             throws java.lang.Exception {
 
-        // Clearing the interrupt flag; makes sense for embedded part of
-        // the test. When running c/s, it would be the server thread which
-        // receives the interrupt, and since db is shut down, that should
-        // be ok for later tests. We need to clear the flag here since, for
-        // embedded, the app thread is affected.
-        Thread.currentThread().interrupted();
-
         Statement stmt = createStatement();
         stmt.executeUpdate("DROP TABLE d151");
         stmt.close();
@@ -128,6 +121,9 @@
                 Thread.currentThread().interrupt();
             }
         } finally {
+            // always clear flag
+            Thread.currentThread().interrupted();
+
             if (insert != null) {
                 try {
                     insert.close(); // already closed by error



Mime
View raw message