db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r1549983 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java
Date Tue, 10 Dec 2013 22:10:07 GMT
Author: dag
Date: Tue Dec 10 22:10:06 2013
New Revision: 1549983

URL: http://svn.apache.org/r1549983
Log:
DERBY-6354 DatabaseMetaDataTest.testGetColumnsReadOnly fails with NPE when releasing page

Diagnostics patch; to be removed when issue is fixed.


Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java?rev=1549983&r1=1549982&r2=1549983&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java
Tue Dec 10 22:10:06 2013
@@ -307,6 +307,10 @@ class RAFContainer4 extends RAFContainer
         if (SanityManager.DEBUG) {
             // getEmbryonicPage only
             if (pageNumber == -1) {
+                if (!holdsThis) {
+                    // Remove when DERBY-6354 is closed:
+                    new Throwable().printStackTrace(SanityManager.GET_DEBUG_STREAM());
+                }
                 SanityManager.ASSERT(holdsThis);
             }
             if (holdsThis) {



Mime
View raw message