roryqi commented on code in PR #12332:
URL: https://github.com/apache/gravitino/pull/12332#discussion_r3703512548
##########
core/src/main/java/org/apache/gravitino/Entity.java:
##########
@@ -41,6 +41,17 @@ public interface Entity extends Serializable {
/** The user schema name in the system catalog. */
String USER_SCHEMA_NAME = "user";
+ /**
+ * A virtual schema name used only for {@link
org.apache.gravitino.lock.TreeLockUtils} lock paths
+ * when operating on users by Gravitino-assigned id (for example,
+ * get/enable/disable/delete-by-id).
+ *
+ * <p>This is not a real metadata schema and does not store entities. It
forms part of a synthetic
+ * {@link org.apache.gravitino.NameIdentifier} such as {@code {metalake,
system, user-id, <id>}}
+ * so that concurrent operations on the same user id are serialized.
+ */
+ String USER_ID_SCHEMA_NAME = "user-id";
Review Comment:
You can reuse `USER_SCHEMA`.
--
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]