World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#9770][followup] improvement: Correct the config option's version (#9833)
roryqid4d1648114bc
diff --git a/common/src/main/java/org/apache/gravitino/config/ConfigConstants.java b/common/src/main/java/org/apache/gravitino/config/ConfigConstants.javaindex 0f76269c9f..fe1693267e 100644--- a/common/src/main/java/org/apache/gravitino/config/ConfigConstants.java+++ b/common/src/main/java/org/apache/gravitino/config/ConfigConstants.java@@ -83,6 +83,9 @@ public final class ConfigConstants {/** The version number for the 1.1.0 release. */public static final String VERSION_1_1_0 = "1.1.0";+ /** The version number for the 1.1.1 release. */+ public static final String VERSION_1_1_1 = "1.1.1";+/** The version number for the 1.2.0 release. */public static final String VERSION_1_2_0 = "1.2.0";diff --git a/core/src/main/java/org/apache/gravitino/Configs.java b/core/src/main/java/org/apache/gravitino/Configs.javaindex bdf604770b..fc8d85312d 100644--- a/core/src/main/java/org/apache/gravitino/Configs.java+++ b/core/src/main/java/org/apache/gravitino/Configs.java@@ -307,7 +307,7 @@ public class Configs {public static final ConfigEntry<Long> GRAVITINO_AUTHORIZATION_CACHE_EXPIRATION_SECS =new ConfigBuilder("gravitino.authorization.jcasbin.cacheExpirationSecs").doc("The expiration time in seconds for authorization cache entries")- .version(ConfigConstants.VERSION_1_2_0)+ .version(ConfigConstants.VERSION_1_1_1).longConf().createWithDefault(DEFAULT_GRAVITINO_AUTHORIZATION_CACHE_EXPIRATION_SECS);@@ -316,7 +316,7 @@ public class Configs {public static final ConfigEntry<Long> GRAVITINO_AUTHORIZATION_ROLE_CACHE_SIZE =new ConfigBuilder("gravitino.authorization.jcasbin.roleCacheSize").doc("The maximum size of the role cache for authorization")- .version(ConfigConstants.VERSION_1_2_0)+ .version(ConfigConstants.VERSION_1_1_1).longConf().createWithDefault(DEFAULT_GRAVITINO_AUTHORIZATION_ROLE_CACHE_SIZE);@@ -325,7 +325,7 @@ public class Configs {public static final ConfigEntry<Long> GRAVITINO_AUTHORIZATION_OWNER_CACHE_SIZE =new ConfigBuilder("gravitino.authorization.jcasbin.ownerCacheSize").doc("The maximum size of the owner cache for authorization")- .version(ConfigConstants.VERSION_1_2_0)+ .version(ConfigConstants.VERSION_1_1_1).longConf().createWithDefault(DEFAULT_GRAVITINO_AUTHORIZATION_OWNER_CACHE_SIZE);diff --git a/docs/security/access-control.md b/docs/security/access-control.mdindex 55d81177ba..854421773a 100644--- a/docs/security/access-control.md+++ b/docs/security/access-control.md@@ -444,9 +444,9 @@ To enable access control in Gravitino, configure the following settings in your|---------------------------------------------------------|---------------------------------------------------------------------------|---------------|---------------------------------------------|---------------|| `gravitino.authorization.enable` | Enable or disable authorization in Gravitino | `false` | No | 0.5.0 || `gravitino.authorization.serviceAdmins` | Comma-separated list of service administrator usernames | (none) | Yes (when authorization is enabled) | 0.5.0 |-| `gravitino.authorization.jcasbin.cacheExpirationSecs` | The expiration time in seconds for authorization cache entries | `3600` | No | 1.2.0 |-| `gravitino.authorization.jcasbin.roleCacheSize` | The maximum size of the role cache for authorization | `10000` | No | 1.2.0 |-| `gravitino.authorization.jcasbin.ownerCacheSize` | The maximum size of the owner cache for authorization | `100000` | No | 1.2.0 |+| `gravitino.authorization.jcasbin.cacheExpirationSecs` | The expiration time in seconds for authorization cache entries | `3600` | No | 1.1.1 |+| `gravitino.authorization.jcasbin.roleCacheSize` | The maximum size of the role cache for authorization | `10000` | No | 1.1.1 |+| `gravitino.authorization.jcasbin.ownerCacheSize` | The maximum size of the owner cache for authorization | `100000` | No | 1.1.1 |### Authorization Cache