yuqi1129 opened a new pull request, #12157: URL: https://github.com/apache/gravitino/pull/12157
### What changes were proposed in this pull request? Adds a design document analyzing whether TreeLock is needed once Gravitino runs in HA, comparing "remove the lock (DB OCC + conditional insert)" vs. "cross-node lock", and recommending Direction 1. Includes the two-store analysis, an industry survey, a proposal (Changes 1-4), and a section on pre-existing hazards split out as do-first sub-issues (#12153, #12154, #12155). Diagrams are committed as rendered PNGs (mermaid `.mmd` sources are kept locally, not committed). ### Why are the changes needed? Under HA, TreeLock is per-JVM and no longer protects across nodes (#10238). This doc establishes what TreeLock actually guards and the direction to close the real gaps in the shared database. Fix: #12156 ### Does this PR introduce _any_ user-facing change? No. Documentation only. ### How was this patch tested? No code changes. Diagrams re-rendered via `design-docs/diagrams/render.sh`; Markdown links verified. -- 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]
