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

[Bug report] SparkJdbcMysqlCatalogIT33 failed #6392

Closed
FANNG1 opened this issue Feb 5, 2025 · 3 comments · Fixed by #6432
Closed

[Bug report] SparkJdbcMysqlCatalogIT33 failed #6392

FANNG1 opened this issue Feb 5, 2025 · 3 comments · Fixed by #6432
Assignees
Labels
0.8.1 0.9.0 Release v0.9.0 bug Something isn't working

Comments

@FANNG1
Copy link
Contributor

FANNG1 commented Feb 5, 2025

Version

main branch

Describe what's wrong

SparkJdbcMysqlCatalogIT33 failed

Error message and/or stacktrace

SparkJdbcMysqlCatalogIT33 > initializationError FAILED
    java.lang.RuntimeException: Failed to create database
        at org.apache.gravitino.integration.test.container.MySQLContainer.createDatabase(MySQLContainer.java:132)
        at org.apache.gravitino.integration.test.container.ContainerSuite.startMySQLContainer(ContainerSuite.java:349)
        at org.apache.gravitino.spark.connector.integration.test.jdbc.SparkJdbcMysqlCatalogIT.initCatalogEnv(SparkJdbcMysqlCatalogIT.java:92)
        at org.apache.gravitino.spark.connector.integration.test.SparkEnvIT.startUp(SparkEnvIT.java:85)
        Caused by:
        java.sql.SQLException: No suitable driver found for jdbc:mysql://192.168.215.7:3306
            at java.sql.DriverManager.getConnection(DriverManager.java:689)
            at java.sql.DriverManager.getConnection(DriverManager.java:247)
            at org.apache.gravitino.integration.test.container.MySQLContainer.createDatabase(MySQLContainer.java:124)
            ... 77 more

How to reproduce

./gradlew :spark-connector:spark-3.3:test -PtestMode=deploy

Additional context

No response

@FANNG1 FANNG1 added the bug Something isn't working label Feb 5, 2025
@shaofengshi
Copy link
Contributor

The command "./gradlew :spark-connector:spark-3.3:test -PtestMode=deploy" at my side has no error.

@jerryshao
Copy link
Contributor

I saw this issue for several times, can you please spend time on this? @FANNG1

@FANNG1
Copy link
Contributor Author

FANNG1 commented Feb 6, 2025

ok, seems this IT failed in some specific environment

github-actions bot pushed a commit that referenced this issue Feb 27, 2025
#6432)

### What changes were proposed in this pull request?

I'm not sure the root reason, seems MYSQL JDBC driver was not loaded
automatically in some condition, in this PR, load Mysql driver
explicitly.

### Why are the changes needed?

Fix: #6392 

### Does this PR introduce _any_ user-facing change?
no

### How was this patch tested?
test in local machine.

---------

Co-authored-by: Qi Yu <[email protected]>
jerryshao pushed a commit that referenced this issue Feb 27, 2025
#6568)

### What changes were proposed in this pull request?

I'm not sure the root reason, seems MYSQL JDBC driver was not loaded
automatically in some condition, in this PR, load Mysql driver
explicitly.

### Why are the changes needed?

Fix: #6392 

### Does this PR introduce _any_ user-facing change?
no

### How was this patch tested?
test in local machine.

Co-authored-by: FANNG <[email protected]>
Co-authored-by: Qi Yu <[email protected]>
@jerryshao jerryshao added 0.9.0 Release v0.9.0 0.8.1 labels Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.8.1 0.9.0 Release v0.9.0 bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants