apache/gravitino
View on GitHub[Improvement] Improve GravitinoCatalogManager close method
Open
#2,911 opened on Apr 12, 2024
good first issueimprovement
Repository metrics
- Stars
- (3,058 stars)
- PR merge metrics
- (PR metrics pending)
Description
What would you like to be improved?
GravitinoCatalogManager's close method mixes static and volatile variables in a nonstatic method and that may cause issues. Correctly updating a static field from a non-static method can be tricky to get right and could easily lead to bugs if there are multiple threads.
How should we improve?
See if this can be improved to be more thread safe.