Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database Aborting when attempting Benchmark with OLTPBench #555

Open
saatviks opened this issue Dec 2, 2017 · 9 comments
Open

Database Aborting when attempting Benchmark with OLTPBench #555

saatviks opened this issue Dec 2, 2017 · 9 comments
Assignees
Labels

Comments

@saatviks
Copy link

saatviks commented Dec 2, 2017

I'm attempting to benchmark ComDB2 with OLTPBench. The table creation and data loading seems to be working for most tables. However when loading data into the tables, ComDB2 suddenly crashes with the following log:

LONG REQUEST 2056 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2334 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2070 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2173 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2274 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2184 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2264 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2331 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2125 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2455 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
2 LONG REQUESTS 2188 MS - 2203 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [last SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
LONG REQUEST 2000 MS logged in /Users/saatvik/comdb2/var/log/cdb2/tpcc.longreqs [SOCKSQL num=1 tot=[2 2] rtt=[2 2] rtrs=[0 0]]
[FATAL] **aborting due thd_req mismatch thd id 0 (my thd 4893118464)
Abort trap: 6

I'll add the Java Exception stack trace as well in a bit.
Here is the Java Stack Trace:

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
	at java.util.ArrayList.rangeCheck(ArrayList.java:653)
	at java.util.ArrayList.get(ArrayList.java:429)
	at com.bloomberg.comdb2.jdbc.Comdb2Handle.reopen(Comdb2Handle.java:1788)
	at com.bloomberg.comdb2.jdbc.Comdb2Handle.open(Comdb2Handle.java:1618)
	at com.bloomberg.comdb2.jdbc.Comdb2Handle.runStatementInt(Comdb2Handle.java:911)
	at com.bloomberg.comdb2.jdbc.Comdb2Handle.runStatement(Comdb2Handle.java:1342)
	at com.bloomberg.comdb2.jdbc.Comdb2Handle.runStatement(Comdb2Handle.java:751)
	at com.bloomberg.comdb2.jdbc.Comdb2Statement.executeQuery(Comdb2Statement.java:118)
	at com.bloomberg.comdb2.jdbc.Comdb2Statement.executeQuery(Comdb2Statement.java:70)
	at com.bloomberg.comdb2.jdbc.Comdb2Statement.executeUpdate(Comdb2Statement.java:157)
	at com.bloomberg.comdb2.jdbc.Comdb2PreparedStatement.executeUpdate(Comdb2PreparedStatement.java:132)
	at com.bloomberg.comdb2.jdbc.Comdb2PreparedStatement.executeBatch(Comdb2PreparedStatement.java:437)
	at com.oltpbenchmark.benchmarks.tpcc.TPCCLoader.loadOrders(TPCCLoader.java:668)
	at com.oltpbenchmark.benchmarks.tpcc.TPCCLoader$2.load(TPCCLoader.java:121)
	at com.oltpbenchmark.api.Loader$LoaderThread.run(Loader.java:65)
	at com.oltpbenchmark.util.ThreadUtil$LatchRunnable.run(ThreadUtil.java:343)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
@akshatsikarwar
Copy link
Contributor

The macOS build is experimental and not as mature at this point. I suggest trying on a Linux machine for the rest of your project. Meanwhile, steps to reproduce this abort will be useful.

@saatviks
Copy link
Author

saatviks commented Dec 2, 2017

Reproducing this error would need a lot of configuration files be setup and many changes in OLTPBench source. I'm not sure how to provide a straightforward way to reproduce - Any suggestions?

@akshatsikarwar
Copy link
Contributor

Possible to share your changes on github? Feel free to dm me or reach out on hangouts so we can debug quickly.

@adizaimi
Copy link

adizaimi commented Dec 4, 2017

Did the abort produce a core? It would be quite useful to get the stack trace of all the running threads in that core, if it is possible.

@saatviks
Copy link
Author

saatviks commented Dec 4, 2017

This issue has been resolved - Im sorry I should close it - though I am still having Serializability issues with ComDB2 - I'll add an issue about that.

@akshatsikarwar
Copy link
Contributor

We discussed offline. I don't have a way to reproduce, but @saatviks sent me the backtraces. I still need to fix this. Seems to affect macOS only.

@akshatsikarwar akshatsikarwar self-assigned this Dec 4, 2017
@akshatsikarwar
Copy link
Contributor

bt.txt

@akshatsikarwar
Copy link
Contributor

bt all.txt

@riverszhang89
Copy link
Contributor

The IndexOutOfBoundsException exception may also be worth looking into.

@riverszhang89 riverszhang89 self-assigned this Dec 4, 2017
@nirbhayc nirbhayc added the bug label Dec 19, 2017
riverszhang89 added a commit to riverszhang89/comdb2 that referenced this issue May 1, 2018
The bug may occur when all nodes in the cluster are down (see bloomberg#555).
riverszhang89 added a commit that referenced this issue May 1, 2018
The bug may occur when all nodes in the cluster are down (see #555).
@riverszhang89 riverszhang89 removed their assignment May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants