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

   
   ##  What changes were proposed in this pull request?
                                                                                
                                                                              
     Changed testInitializeDefaultUsesGenericJdbcRepository to use an in-memory 
H2 database (jdbc:h2:mem:) instead of a file-based H2 database
     (jdbc:h2:file:).                                                           
                                                                              
      
   ##  Why are the changes needed?                                              
                                                                                
                                                                     
     The test was creating file-based H2 databases at 
data/test-metrics-updater-default-<nanoTime>.db that were never cleaned up, 
leaving leftover .db files  
     on disk after each test run. The other similar test 
(testInitializeWithJdbcConfigStillUsesGenericJdbcRepository) already uses 
in-memory H2 correctly.
                                                                                
                                                                              
     Fix: #                                                          
   
   ##  Does this PR introduce any user-facing change?
   
     No.
   
   ##  How was this patch tested?
   
     Ran ./gradlew :maintenance:optimizer:test --tests 
"org.apache.gravitino.maintenance.optimizer.updater.metrics.TestGravitinoMetricsUpdater"
 -PskipITs —   
     all 8 tests pass.


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