h2database / h2database/h2database
SQLInvalidAuthorizationSpecException in TestMultiThreadedKernel
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 4.6k
- Forks
- 1.3k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 9
Description
An unusual random failure in current master on Java 10:
13:52:01 00:00.001 org.h2.test.db.TestMultiThreadedKernel FAIL org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException: Wrong user name or password [28000-197]
ERROR: FAIL (mvStore AES SOFT_LRU diskUndo diskResult traceLevelFile throttle:1 ) org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException: Wrong user name or password [28000-197] org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException: Wrong user name or password [28000-197] ------------------------------
org.h2.jdbc.JdbcSQLInvalidAuthorizationSpecException: Wrong user name or password [28000-197]
at org.h2.message.DbException.getJdbcSQLException(DbException.java:456)
at org.h2.message.DbException.getJdbcSQLException(DbException.java:425)
at org.h2.message.DbException.get(DbException.java:203)
at org.h2.message.DbException.get(DbException.java:179)
at org.h2.message.DbException.get(DbException.java:168)
at org.h2.engine.Engine.validateUserAndPassword(Engine.java:362)
at org.h2.engine.Engine.createSessionAndValidate(Engine.java:186)
at org.h2.engine.Engine.createSession(Engine.java:161)
at org.h2.engine.Engine.createSession(Engine.java:31)
at org.h2.engine.SessionRemote.connectEmbeddedOrServer(SessionRemote.java:336)
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:123)
at org.h2.jdbc.JdbcConnection.<init>(JdbcConnection.java:102)
at org.h2.Driver.connect(Driver.java:69)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:228)
at org.h2.test.db.TestMultiThreadedKernel.testConcurrentRead(TestMultiThreadedKernel.java:106)
at org.h2.test.db.TestMultiThreadedKernel.test(TestMultiThreadedKernel.java:48)
at org.h2.test.TestBase.runTest(TestBase.java:139)
at org.h2.test.TestAll.addTest(TestAll.java:1018)
at org.h2.test.TestAll.test(TestAll.java:770)
at org.h2.test.TestAll.runTests(TestAll.java:665)
at org.h2.test.TestAll.testAll(TestAll.java:556)
at org.h2.test.TestAll.run(TestAll.java:506)
at org.h2.test.TestAll.main(TestAll.java:447)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with org/h2/test/db/TestMultiThreadedKernel.java, especially testConcurrentRead at line 106, and inspect the connection setup around the reported failure. Reproduce the Java 10 failure if possible; done means the intermittent SQLInvalidAuthorizationSpecException is explained and the test runs reliably without false authentication failures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, sql
- Domain
- databases, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100