yuqi1129 commented on code in PR #8102:
URL: https://github.com/apache/gravitino/pull/8102#discussion_r2336061577


##########
server-common/src/main/java/org/apache/gravitino/server/authorization/jcasbin/JcasbinAuthorizer.java:
##########
@@ -76,8 +82,26 @@ public class JcasbinAuthorizer implements 
GravitinoAuthorizer {
    */
   private Set<Long> loadedRoles = ConcurrentHashMap.newKeySet();
 
+  /**
+   * loadedOwners is used to cache owners that have loaded permissions. When 
the permissions of a
+   * role are updated, they should be removed from it.
+   */
+  private Set<Long> loadedOwners = ConcurrentHashMap.newKeySet();
+
+  private Executor executor = null;
+
   @Override
   public void initialize() {
+    executor =
+        Executors.newFixedThreadPool(
+            GravitinoEnv.getInstance()
+                .config()
+                .get(Configs.ENTITY_RELATIONAL_JDBC_BACKEND_MAX_CONNECTIONS),

Review Comment:
   `ENTITY_RELATIONAL_JDBC_BACKEND_MAX_CONNECTIONS` is the configuration that 
controls the number of   jdbc connections. There aren't the same things, we 
need to use another configuration even though the values of them are the same. 



-- 
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]

Reply via email to