nevzheng opened a new pull request, #14099:
URL: https://github.com/apache/gravitino/pull/14099

   ### What changes were proposed in this pull request?
   
   - `TestMysqlCatalogOperations#testCheckJDBCDriver` initializes the 
operations with a real `CatalogInfo` instead of `null`.
   
   ### Why are the changes needed?
   
   `JdbcCatalogOperations.initialize` reads `info.namespace()` when 
`GravitinoEnv` has a metrics system. After an embedded integration test in the 
same JVM, `GravitinoEnv` still holds one, so the test failed with a 
NullPointerException depending on class order.
   
   Fix: #14095 (item 4)
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Test code only.
   
   ### How was this patch tested?
   
   `AuditCatalogMysqlIT` then `TestMysqlCatalogOperations` in one JVM: fails on 
`main`, passes with this change.
   


-- 
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