predator4ann opened a new issue, #7696:
URL: https://github.com/apache/gravitino/issues/7696

   ### Version
   
   main branch
   
   ### Describe what's wrong
   
   When running the CatalogMysqlDriverIT test, we found that there are two 
different versions of the MySQL JDBC driver (mysql-connector-java-8.0.11 and 
mysql-connector-java-8.0.26) present in the classpath. This can cause 
unpredictable test behaviors because the test might not be using the intended 
version.
   
   Expected Behavior:​​
   Only one version of the MySQL JDBC driver should be present during the test 
execution to ensure consistency.
   
   ​Actual Behavior:​​
   Multiple versions of the MySQL JDBC driver (8.0.11 and 8.0.26) are present, 
which may lead to conflicts.
   
   ### Error message and/or stacktrace
   
   <img width="624" height="80" alt="Image" 
src="https://github.com/user-attachments/assets/85700650-e0fa-442a-af02-81bb2b83e543";
 />
   
   ### How to reproduce
   
   1. Run the CatalogMysqlDriverIT test.
   2. Check the classpath for MySQL JDBC drivers (or distribution/package/libs).
   
   ### Additional context
   
   We should add a check at the beginning of the test (or in a base test class) 
to ensure that only the expected version of the MySQL driver is loaded. 
Alternatively, we can enforce that the test cleans up after itself to avoid 
leaving multiple versions in the classpath.
   
   Additionally, we may need to check for similar issues in other integration 
tests that use JDBC drivers.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to