<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/benchmarksql/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/benchmarksql/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/benchmarksql/bugs/</id><updated>2016-05-06T06:30:32.984000Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>incorrect informativeText output format</title><link href="https://sourceforge.net/p/benchmarksql/bugs/6/" rel="alternate"/><published>2016-05-06T06:30:32.984000Z</published><updated>2016-05-06T06:30:32.984000Z</updated><author><name>Chen Huajun</name><uri>https://sourceforge.net/u/skykiker/</uri></author><id>https://sourceforge.netc35dbbfc6bd17071cd1ed070e64cddc64c2a6cac</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There's wrong code in jTPCC.java, which cause the output format of informativeText become incorrect.(I run it in Linux)&lt;/p&gt;
&lt;p&gt;jTPCC.java:&lt;br/&gt;
for (int count = 0; count &amp;lt; 1+informativeText.length(); count++)&lt;/p&gt;
&lt;p&gt;the above should be:&lt;br/&gt;
for (int count = 0; count &amp;lt; informativeText.length(); count++)&lt;/p&gt;
&lt;p&gt;BTW:&lt;br/&gt;
I want to write a script to parse the output of runBenchmark.sh, but there is too many informativeText output if i redirect the stdout to a log file.&lt;br/&gt;
Could write the informativeText to stderr instead of stdout. As the following.&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;        System.err.print(informativeText);
        for (int count = 0; count &amp;lt; informativeText.length(); count++)
            System.err.print("\b");
&lt;/pre&gt;&lt;/div&gt;

&lt;/div&gt;</summary></entry><entry><title>Print next exception</title><link href="https://sourceforge.net/p/benchmarksql/bugs/5/" rel="alternate"/><published>2014-05-31T09:58:12.671000Z</published><updated>2014-05-31T09:58:12.671000Z</updated><author><name>Andres Gomez Casanova</name><uri>https://sourceforge.net/u/angoca/</uri></author><id>https://sourceforge.net3c1838c3e1adf70edb4137e4f7eba68ae2dd46e8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;When an exception is thrown, sometimes is not enough to deal with the exception itself, but it is necessary, in order to understand the reason, to scan the "next exceptions"&lt;/p&gt;
&lt;p&gt;At the moment of the catch exception, print the message of not only that given exception, but any other wrapped exception, and for this the nextException() method could be used.&lt;/p&gt;
&lt;p&gt;That helps to resolve problem easily.&lt;/p&gt;
&lt;p&gt;The issue is present in the Java classes that deal with SQLExceptions.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Code</title><link href="https://sourceforge.net/p/benchmarksql/bugs/4/" rel="alternate"/><published>2013-12-18T15:40:30.726000Z</published><updated>2013-12-18T15:40:30.726000Z</updated><author><name>Andres Gomez Casanova</name><uri>https://sourceforge.net/u/angoca/</uri></author><id>https://sourceforge.net50d5593b67d998dfd72edee12566edec018f24a9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I would like to know where the code is hosted? The SVN or git server.&lt;br /&gt;
I know the code is provide as part of the release, but it is better to get a copy of the most recent versions.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Modify script to change the driver</title><link href="https://sourceforge.net/p/benchmarksql/bugs/3/" rel="alternate"/><published>2013-12-18T15:12:58.765000Z</published><updated>2013-12-18T15:12:58.765000Z</updated><author><name>Andres Gomez Casanova</name><uri>https://sourceforge.net/u/angoca/</uri></author><id>https://sourceforge.net92027440d495dd845bcdc3bbe196b5152b36acbc</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I just downloaded the application to test a db2 database, but I needed to modify many scripts (runSQL, runLoader, runBenchmark) in order to load the right drivers and execute the benchmark.&lt;/p&gt;
&lt;p&gt;However, I found that the scripts and the documentation is oriented to postgres. It is not bad, but it could be more flexible.&lt;/p&gt;
&lt;p&gt;I would like to propose to create a symbolic link to the postgres driver. In this way, the scripts reference to the symbolic link, and by default it uses postgres. For other users, like me, we need to replace the symbolic link to point to our own driver, in my case the db2jcc4.jar.&lt;/p&gt;
&lt;p&gt;For example, in the run directory execute:&lt;/p&gt;
&lt;p&gt;ln -s ../lib/postgresql-9.3-1100.jdbc4.jar jdbc-driver.jar&lt;/p&gt;
&lt;p&gt;and then, replace the scripts with lines like this:&lt;/p&gt;
&lt;p&gt;runSQL.sh&lt;br /&gt;
myCP="./jdbc-driver.jar"&lt;/p&gt;
&lt;p&gt;runBenchmark.sh&lt;br /&gt;
java -cp .:./jdbc-driver.jar:../lib/log4j-1.2.17.jar:../lib/apache-log4j-extras-1.1.jar:../dist/BenchmarkSQL-4.0.jar -Dprop=$1 jTPCC&lt;/p&gt;
&lt;p&gt;For other databases, it is not necessary to modify the script, but just remove the link and recreate. In my case&lt;/p&gt;
&lt;p&gt;rm jdbc-driver.jar&lt;br /&gt;
ln -s /home/db2inst1/sqllib/java/db2jcc4.jar jdbc-driver.jar&lt;/p&gt;
&lt;p&gt;If the symbolic link is not a good option, you could also put a env variable, and use parameter expansion.&lt;/p&gt;
&lt;p&gt;For example, in all scripts put a variable like this&lt;br /&gt;
JDBC_DRIVER=${JDBC_DRIVER:-../lib/postgresql-9.3-1100.jdbc4.jar}&lt;/p&gt;
&lt;p&gt;java -cp .:${JDBC_DRIVER}:../lib/log4j-1.2.17.jar:../lib/apache-log4j-extras-1.1.jar:../dist/BenchmarkSQL-4.0.jar -Dprop=$1 jTPCC&lt;/p&gt;
&lt;p&gt;If the variable is not defined, the script will override this with the postgres value. Other users will defined before call the script just by doing this:&lt;br /&gt;
export JDBC_DRIVER=/home/db2inst1/sqllib/java/db2jcc4.jar&lt;/p&gt;
&lt;p&gt;For more information:&lt;br /&gt;
&lt;a href="https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html" rel="nofollow"&gt;https://www.gnu.org/software/bash/manual/html_node/Shell-Parameter-Expansion.html&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Incorrect transaction boundaries</title><link href="https://sourceforge.net/p/benchmarksql/bugs/2/" rel="alternate"/><published>2009-02-27T09:30:20Z</published><updated>2009-02-27T09:30:20Z</updated><author><name>Roy Hann</name><uri>https://sourceforge.net/u/quelgeek/</uri></author><id>https://sourceforge.netb59678e5e22d23723bc2b67356f2429cf3e7126b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The Stock-Level transaction and the Order-Status transaction are both missing a call to the transCommit()&lt;br /&gt;
method.&lt;/p&gt;
&lt;p&gt;Need to add a call to transCommit() at lines 696 and 1149 of jTPCCTerminal.java .&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Customer loading failures</title><link href="https://sourceforge.net/p/benchmarksql/bugs/1/" rel="alternate"/><published>2006-04-26T14:19:23Z</published><updated>2006-04-26T14:19:23Z</updated><author><name>Mikael Carneholm</name><uri>https://sourceforge.net/u/carniz/</uri></author><id>https://sourceforge.net5693f42d063dbea4a106098938ae6d2267872c53</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;BenchmarkSQL version: 2.3.2&lt;br /&gt;
Database: postgresql 8.1.3, oracle 9.2.0.4&lt;br /&gt;
Drivers: postgresql-8.0.309.jdbc3.jar, classes12.jar&lt;/p&gt;
&lt;p&gt;I get errors like these (in the ERRORS tab) when&lt;br /&gt;
running BenchmarkSQL 2.3.2:&lt;/p&gt;
&lt;p&gt;[ERROR] TERMINAL=Term-01  TYPE=ORDER-STATUS  COUNT=197&lt;br /&gt;
java.lang.Exception: C_LAST=CALLYPRESPRI C_D_ID=9&lt;br /&gt;
C_W_ID=4 not found!&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.orderStatusTransaction(jTPCCTerminal.java:578)&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.executeTransaction(jTPCCTerminal.java:310)&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.executeTransactions(jTPCCTerminal.java:165)&lt;br /&gt;
at jTPCCTerminal.run(jTPCCTerminal.java:111)&lt;br /&gt;
at java.lang.Thread.run(Thread.java:595)&lt;/p&gt;
&lt;p&gt;[ERROR] TERMINAL=Term-01  TYPE=ORDER-STATUS  COUNT=654&lt;br /&gt;
java.lang.Exception: C_LAST=ATIONCALLYEING C_D_ID=4&lt;br /&gt;
C_W_ID=4 not found!&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.orderStatusTransaction(jTPCCTerminal.java:578)&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.executeTransaction(jTPCCTerminal.java:310)&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.executeTransactions(jTPCCTerminal.java:165)&lt;br /&gt;
at jTPCCTerminal.run(jTPCCTerminal.java:111)&lt;br /&gt;
at java.lang.Thread.run(Thread.java:595)&lt;/p&gt;
&lt;p&gt;[ERROR] TERMINAL=Term-01  TYPE=ORDER-STATUS  COUNT=860&lt;br /&gt;
java.lang.Exception: C_LAST=PRIESEPRI C_D_ID=7 C_W_ID=4&lt;br /&gt;
not found!&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.orderStatusTransaction(jTPCCTerminal.java:578)&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.executeTransaction(jTPCCTerminal.java:310)&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.executeTransactions(jTPCCTerminal.java:165)&lt;br /&gt;
at jTPCCTerminal.run(jTPCCTerminal.java:111)&lt;br /&gt;
at java.lang.Thread.run(Thread.java:595)&lt;/p&gt;
&lt;p&gt;[ERROR] TERMINAL=Term-01  TYPE=ORDER-STATUS  COUNT=1407&lt;br /&gt;
java.lang.Exception: C_LAST=ESEESEPRES C_D_ID=1&lt;br /&gt;
C_W_ID=4 not found!&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.orderStatusTransaction(jTPCCTerminal.java:578)&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.executeTransaction(jTPCCTerminal.java:310)&lt;br /&gt;
at&lt;br /&gt;
jTPCCTerminal.executeTransactions(jTPCCTerminal.java:165)&lt;br /&gt;
at jTPCCTerminal.run(jTPCCTerminal.java:111)&lt;br /&gt;
at java.lang.Thread.run(Thread.java:595)&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>