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

   ### What would you like to be improved?
   
   When I was testing Gravitino in our data workflow recently, I chose to use 
its H2 JDBC backend for simplicity. From time to time, I encountered various 
strange issues—though I can’t recall the specifics, I remember the effort and 
frustration they caused. What I concluded from these experiences is that 
manually cleaning up H2 temporary files often resolved the issues immediately. 
Since I don’t see any harm in doing so, I think the a shutdown hook should be 
added to `H2Database` to perform the cleanup by default.
   
   ### How should we improve?
   
   I have modify the source code, rebuilt and tested it in my environment. If 
you think it's the right idea and approach. I can submit a PR later. The basic 
plot:
   
   1. record the storage path during startup in `H2Database`
   2. do the cleanup in the finally block in `#close()`


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