You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by Mayuresh Nirhali <Ma...@Sun.COM> on 2006/03/28 14:41:57 UTC

Reproducing DERBY-836

Hello,


I am looking at Derby - 836 and could not reproduce it in network mode.
I have attached the script that I used for running the 
jdbcapi/metadata.java test.

Could you please give some inputs to reproduce this one ??


The script that I use to run in network mode is as below,

#!/bin/bash
export DERBY_HOME=/export/home/mayuresh/ws/derby/trunk
export DERBY=$DERBY_HOME/jars/sane
export CLASSPATH=$DERBY/derbyTesting.jar:${DERBY}/derby.jar:${DERBY}/derbytools.jar:${DERBY}/derbynet.jar:${DERBY}/derbyclient.jar:${DERBY}/derbyLocale_AP.jar:${DERBY_HOME}/tools/java/junit.jar:/usr/local/share/java/jakarta/jakarta-oro-2.0.8/jakarta-oro-2.0.8.jar
#export JAVA_HOME=/usr/bin
export JAVA_HOME=/usr/jdk/j2sdk1.4.2_06/jre/bin
$JAVA_HOME/java -Dframework=DerbyNetClient org.apache.derbyTesting.functionTests.harness.RunTest $1

TIA
Mayuresh


Re: Reproducing DERBY-836

Posted by Daniel John Debrunner <dj...@apache.org>.
Mayuresh Nirhali wrote:

> Hello,
> 
> 
> I am looking at Derby - 836 and could not reproduce it in network mode.
> I have attached the script that I used for running the
> jdbcapi/metadata.java test.
> 
> Could you please give some inputs to reproduce this one ??

The metadata.java test already shows the issue.

Lines 2-13 of metadata.out are related to this issue. When I entered the
bug they showed differences as indicated in the bug description.

Do they not show the differences any more?

Dan.


Re: Reproducing DERBY-836

Posted by Mayuresh Nirhali <Ma...@Sun.COM>.
Bryan Pendleton wrote:

> > I am looking at Derby - 836 and could not reproduce it in network mode.
>
> When you run jdbcapi/metadata with -Dframework=DerbyNetClient, does the
> test pass or fail for you? If it does, you've reproduced the bug.
>
> Look at lines 10-12 of metadata.out in
>   java/testing/org/apache/derbyTesting/functionTests/master
> and
>   
> java/testing/org/apache/derbyTesting/functionTests/master/DerbyNetClient
>
Thanks a lot bryan!

I overlooked the file in DerbyNetClient directory. I was under the 
impression that both the modes use the same file under master dir.


Mayuresh

Re: Reproducing DERBY-836

Posted by Bryan Pendleton <bp...@amberpoint.com>.
 > I am looking at Derby - 836 and could not reproduce it in network mode.

When you run jdbcapi/metadata with -Dframework=DerbyNetClient, does the
test pass or fail for you? If it does, you've reproduced the bug.

Look at lines 10-12 of metadata.out in
   java/testing/org/apache/derbyTesting/functionTests/master
and
   java/testing/org/apache/derbyTesting/functionTests/master/DerbyNetClient

Do you see how the two files are different?

The bug says that we want to change the DerbyNetClient/metadata.out file
so that it has the same values as the master/metadata.out file, because
we think the file in the master directory has the correct values, but since
DerbyNetClient is currently producing length 12 in those 3 cases, we cannot.

That is, to reproduce the bug, change DerbyNetClient/metadata.out so
that lines 10-12 match the lines from the master/metadata.out file, then
re-run your script and the test should now fail with a diff showing those
three lines.

thanks,

bryan