gravitino
gravitino copied to clipboard
[#6236] fix(core): fix possible resource leak in BaseCatalog
What changes were proposed in this pull request?
Use try-with-resource to fix possible resource leak in BaseCatalog.
Why are the changes needed?
Fix: #6236
Does this PR introduce any user-facing change?
No.
How was this patch tested?
local test.
@justinmclean @tengqm ,could you please review this PR when you have time? I’d really appreciate your feedback.
@xunliu @jerqi can you please help to review?
@jerqi @xunliu can you please review again to see if it is a necessary fix?
@xunliu I’ve finished updating the code. Please take a look at the PR again when you have time.