db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lily...@apache.org
Subject svn commit: r1059026 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/LockInterruptTest.java
Date Fri, 14 Jan 2011 14:43:55 GMT
Author: lilywei
Date: Fri Jan 14 14:43:54 2011
New Revision: 1059026

URL: http://svn.apache.org/viewvc?rev=1059026&view=rev
Log:
DERBY-4856 At LockInterruptTest.runWaiter() line 150 with ps.executeUpdate, the test receive
an interrupt and raise an error/exception "ERROR 08000: Connection closed by unknown interrupt".
This is a session ending exception so set the property to avoid thread dump and diagnostic
information.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/LockInterruptTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/LockInterruptTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/LockInterruptTest.java?rev=1059026&r1=1059025&r2=1059026&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/LockInterruptTest.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/engine/LockInterruptTest.java
Fri Jan 14 14:43:54 2011
@@ -23,11 +23,13 @@ import java.sql.Connection;
 import java.sql.PreparedStatement;
 import java.sql.SQLException;
 import java.sql.Statement;
+import java.util.Properties;
 import junit.framework.Test;
 import org.apache.derbyTesting.junit.BaseJDBCTestCase;
 import org.apache.derbyTesting.junit.CleanDatabaseTestSetup;
 import org.apache.derbyTesting.junit.DatabasePropertyTestSetup;
 import org.apache.derbyTesting.junit.JDBC;
+import org.apache.derbyTesting.junit.SystemPropertyTestSetup;
 import org.apache.derbyTesting.junit.TestConfiguration;
 
 /**
@@ -57,6 +59,12 @@ public class LockInterruptTest extends B
         // expect for timeouts.
         test = DatabasePropertyTestSetup.setLockTimeouts(
                 test, DEADLOCK_TIMEOUT, LOCK_TIMEOUT);
+        Properties syspros = new Properties();
+        //Derby-4856 interrupt error create thread dump and diagnostic
+        //info. Add property to avoid the information.
+        syspros.put("derby.stream.error.extendedDiagSeverityLevel", "50000");
+        test = new SystemPropertyTestSetup(test, syspros, true);
+        
 
         return new CleanDatabaseTestSetup(test);
     }



Mime
View raw message