apache/gravitino

[Improvement] Improve GravitinoCatalogManager close method

Open

#2,911 建立於 2024年4月12日

在 GitHub 查看
 (7 留言) (0 反應) (0 負責人)Java (887 fork)auto 404
good first issueimprovement

倉庫指標

Star
 (3,058 star)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南