jerryshao commented on code in PR #6432:
URL: https://github.com/apache/gravitino/pull/6432#discussion_r1956015194


##########
integration-test-common/src/test/java/org/apache/gravitino/integration/test/container/MySQLContainer.java:
##########
@@ -119,6 +119,14 @@ public void createDatabase(TestDatabaseName 
testDatabaseName) {
         StringUtils.substring(
             getJdbcUrl(testDatabaseName), 0, 
getJdbcUrl(testDatabaseName).lastIndexOf("/"));
 
+    // Fix https://github.com/apache/gravitino/issues/6392, MYSQL JDBC driver 
may not load
+    // automatically.
+    try {
+      Class.forName("com.mysql.jdbc.Driver");

Review Comment:
   It would be better to figure out the root cause because the fix.



##########
integration-test-common/src/test/java/org/apache/gravitino/integration/test/container/MySQLContainer.java:
##########
@@ -119,6 +119,14 @@ public void createDatabase(TestDatabaseName 
testDatabaseName) {
         StringUtils.substring(
             getJdbcUrl(testDatabaseName), 0, 
getJdbcUrl(testDatabaseName).lastIndexOf("/"));
 
+    // Fix https://github.com/apache/gravitino/issues/6392, MYSQL JDBC driver 
may not load
+    // automatically.
+    try {
+      Class.forName("com.mysql.jdbc.Driver");

Review Comment:
   It would be better to figure out the root cause before the fix.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to