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

Add SBK driver for performance benchmarking of H2 database #337

Merged
merged 3 commits into from
Mar 20, 2022
Merged

Add SBK driver for performance benchmarking of H2 database #337

merged 3 commits into from
Mar 20, 2022

Conversation

sushnag22
Copy link
Contributor

Describe the Issue (Bug/Feature) or Change log description

Feature: Add SBK driver for H2 database(https://h2database.com/html/main.html). Issue #336

Purpose of the change

By adding the H2 database driver, we can get the performance benchmarking for it using SBK.

What the code does

The code and all its related files adds a driver for H2 database.

How to verify it

Use the command build\install\sbk\bin\sbk -class h2 -writers 1 -size 100 -seconds 100 to get the performance benchmarking for H2 database.

@sushnag22
Copy link
Contributor Author

Sir, I'm getting this error when I run the command build\install\sbk\bin\sbk -class h2 -writers 1 -size 100 -seconds 100 to get the performance benchmarking of H2 database.

java.io.IOException: org.h2.jdbc.JdbcSQLSyntaxErrorException: Syntax error in SQL statement "SET [*]CREATE true"; expected "@, AUTOCOMMIT, EXCLUSIVE, IGNORECASE, PASSWORD, SA
LT, MODE, DATABASE, COLLATION, CLUSTER, DATABASE_EVENT_LISTENER, ALLOW_LITERALS, DEFAULT_TABLE_TYPE, SCHEMA, CATALOG, SCHEMA_SEARCH_PATH, JAVA_OBJECT_SERIALIZER, IGNORE_CATALOGS, SESSION, TRANSACTION, TIME, NON_KEYWORDS, DEFAULT_NULL_ORDERING, LOG"; SQL statement:
SET CREATE true [42001-210]
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:521)
        at org.h2.message.DbException.getJdbcSQLException(DbException.java:496)
        at org.h2.message.DbException.getSyntaxError(DbException.java:265)
        at org.h2.command.Parser.getSyntaxError(Parser.java:890)
        at org.h2.command.Parser.parseSet(Parser.java:8077)
        at org.h2.command.Parser.parsePrepared(Parser.java:715)
        at org.h2.command.Parser.parse(Parser.java:674)
        at org.h2.command.Parser.parse(Parser.java:649)
        at org.h2.command.Parser.prepareCommand(Parser.java:551)
        at org.h2.engine.SessionLocal.prepareLocal(SessionLocal.java:615)
        at org.h2.engine.Engine.openSession(Engine.java:257)
        at org.h2.engine.Engine.createSession(Engine.java:201)
        at org.h2.server.TcpServerThread.run(TcpServerThread.java:175)
        at java.base/java.lang.Thread.run(Thread.java:833)
        at io.sbk.Jdbc.Jdbc.openStorage(Jdbc.java:224)
        at io.sbk.api.impl.SbkBenchmark.start(SbkBenchmark.java:140)
        at io.sbk.api.impl.Sbk.run(Sbk.java:80)
        at io.sbk.main.SbkMain.main(SbkMain.java:29)

I'm still trying to solve this error, will raise a PR again once it is fixed.

@kmgowda kmgowda merged commit 786a0c6 into kmgowda:master Mar 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants