apache/gravitino

[Improvement] Improve GravitinoCatalogManager close method

Open

#2,911 opened on 2024年4月12日

GitHub で見る
 (7 comments) (0 reactions) (0 assignees)Java (887 forks)auto 404
good first issueimprovement

Repository metrics

Stars
 (3,058 stars)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド