Re: junit failures

2011-04-19 Thread Kristian Waagan

On 19.04.11 23:51, Dave Brosius wrote:

On 04/19/2011 02:39 PM, Kathey Marsden wrote:

On 4/19/2011 8:37 AM, Lily Wei wrote:

Hi David:
I tried with an empty directory for the same test with your fix. 
It also failed for me with the patch.


So it sounds specifically related to the patch.  I wonder if at 
whatever point these objects are supposed to be dropped, there are 
open result sets so it doesn't actually get dropped. Is there 
anything in the derby.log about maybe not being able to drop the 
Phase table because of open result sets?






Only thing of interest is this, nothing related to the Phase table:

Sun Apr 17 04:57:15 EST 2011 : Execution failed because of Permanent 
Agent Error: SVRCOD = 40; RDBNAM = srvdscreateshutdowndb1;create=true; 
diagnostic msg = ASSERT FAILED pbsd is not expected to be null
org.apache.derby.impl.drda.DRDAProtocolException: Execution failed 
because of Permanent Agent Error: SVRCOD = 40; RDBNAM = 
srvdscreateshutdowndb1;create=true; diagnostic msg = ASSERT FAILED 
pbsd is not expected to be null
at 
org.apache.derby.impl.drda.DRDAProtocolException.newAgentError(DRDAProtocolException.java:339)
at 
org.apache.derby.impl.drda.DRDAConnThread.sendUnexpectedException(DRDAConnThread.java:8378)
at 
org.apache.derby.impl.drda.DRDAConnThread.handleException(DRDAConnThread.java:8329)
at 
org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:319)
Sun Apr 17 04:57:15 EST 2011 : ASSERT FAILED pbsd is not expected to 
be null
org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED 
pbsd is not expected to be null
at 
org.apache.derby.shared.common.sanity.SanityManager.ASSERT(SanityManager.java:120)
at 
org.apache.derby.impl.drda.DRDAConnThread.writePBSD(DRDAConnThread.java:2726)
at 
org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:1044)
at 
org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:294)


Looking at the stack trace, the assert is related to the piggy-backing 
of session state data. This was added as DERBY-3192, and I also made 
minor some changes as part of DERBY-3596.
I haven't looked at your patch, so I have no idea what causes the assert 
to trigger. Things start looking at may be whether protocol flows have 
been changed, or if a deferred reset is taking place.
Out of curiosity, do all the tests pass when you run with an insane 
build? [*]



Regards,
--
Kristian

* Even if they pass, a performance regression for the client driver may 
have been introduced (typically one extra round-trip to get the session 
data).




Re: junit failures

2011-04-19 Thread Dave Brosius

On 04/19/2011 02:39 PM, Kathey Marsden wrote:

On 4/19/2011 8:37 AM, Lily Wei wrote:

Hi David:
I tried with an empty directory for the same test with your fix. 
It also failed for me with the patch.


So it sounds specifically related to the patch.  I wonder if at 
whatever point these objects are supposed to be dropped, there are 
open result sets so it doesn't actually get dropped. Is there anything 
in the derby.log about maybe not being able to drop the Phase table 
because of open result sets?






Only thing of interest is this, nothing related to the Phase table:

Sun Apr 17 04:57:15 EST 2011 : Execution failed because of Permanent 
Agent Error: SVRCOD = 40; RDBNAM = srvdscreateshutdowndb1;create=true; 
diagnostic msg = ASSERT FAILED pbsd is not expected to be null
org.apache.derby.impl.drda.DRDAProtocolException: Execution failed 
because of Permanent Agent Error: SVRCOD = 40; RDBNAM = 
srvdscreateshutdowndb1;create=true; diagnostic msg = ASSERT FAILED pbsd 
is not expected to be null
at 
org.apache.derby.impl.drda.DRDAProtocolException.newAgentError(DRDAProtocolException.java:339)
at 
org.apache.derby.impl.drda.DRDAConnThread.sendUnexpectedException(DRDAConnThread.java:8378)
at 
org.apache.derby.impl.drda.DRDAConnThread.handleException(DRDAConnThread.java:8329)
at 
org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:319)

Sun Apr 17 04:57:15 EST 2011 : ASSERT FAILED pbsd is not expected to be null
org.apache.derby.shared.common.sanity.AssertFailure: ASSERT FAILED pbsd 
is not expected to be null
at 
org.apache.derby.shared.common.sanity.SanityManager.ASSERT(SanityManager.java:120)
at 
org.apache.derby.impl.drda.DRDAConnThread.writePBSD(DRDAConnThread.java:2726)
at 
org.apache.derby.impl.drda.DRDAConnThread.processCommands(DRDAConnThread.java:1044)
at 
org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:294)


Re: junit failures

2011-04-19 Thread Kathey Marsden

On 4/19/2011 8:37 AM, Lily Wei wrote:

Hi David:
I tried with an empty directory for the same test with your fix. 
It also failed for me with the patch.


So it sounds specifically related to the patch.  I wonder if at whatever 
point these objects are supposed to be dropped, there are open result 
sets so it doesn't actually get dropped. Is there anything in the 
derby.log about maybe not being able to drop the Phase table because of 
open result sets?






Re: junit failures

2011-04-19 Thread Lily Wei
Hi David:
I tried with an empty directory for the same test with your fix. It also
failed for me with the patch.

Thanks,
Lily

On Mon, Apr 18, 2011 at 5:03 AM, Knut Anders Hatlen
wrote:

> Dave Brosius  writes:
>
> > I've managed to knock down the number of failures for running:
> >
> > java -classpath
> >
> tools/java/junit.jar:tools/java/jakarta-oro-2.0.8.jar:jars/sane/derbyTesting.jar:jars/sane/derby.jar:jars/sane/derbyTools.jar:jars/sane/derbyTools.jar:jars/sane/derbyrun.jar:jars/sane/derbynet.jar:jars/sane/derbyclient.jar
> > -Xmx800m -XX:MaxPermSize=512m junit.textui.TestRunner
> > org.apache.derbyTesting.functionTests.suites.All
> >
> > to two, below.
> >
> > Anyone know what i'm doing wrong?
>
> Perhaps you have old databases lying around from earlier test runs? That
> could confuse some of the tests. Removing the system directory before
> rerunning the tests should help if that's the problem.
>
> --
> Knut Anders
>


Re: junit failures

2011-04-18 Thread Knut Anders Hatlen
Dave Brosius  writes:

> I've managed to knock down the number of failures for running:
>
> java -classpath
> tools/java/junit.jar:tools/java/jakarta-oro-2.0.8.jar:jars/sane/derbyTesting.jar:jars/sane/derby.jar:jars/sane/derbyTools.jar:jars/sane/derbyTools.jar:jars/sane/derbyrun.jar:jars/sane/derbynet.jar:jars/sane/derbyclient.jar
> -Xmx800m -XX:MaxPermSize=512m junit.textui.TestRunner
> org.apache.derbyTesting.functionTests.suites.All
>
> to two, below.
>
> Anyone know what i'm doing wrong?

Perhaps you have old databases lying around from earlier test runs? That
could confuse some of the tests. Removing the system directory before
rerunning the tests should help if that's the problem.

-- 
Knut Anders