You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/08/05 00:19:27 UTC

[GitHub] [iceberg] amogh-jahagirdar commented on a diff in pull request #4695: AWS: Add Cache for LakeFormation Credentials

amogh-jahagirdar commented on code in PR #4695:
URL: https://github.com/apache/iceberg/pull/4695#discussion_r938347250


##########
aws/src/main/java/org/apache/iceberg/aws/AwsProperties.java:
##########
@@ -401,6 +417,23 @@ public class AwsProperties implements Serializable {
    */
   public static final String LAKE_FORMATION_DB_NAME = "lakeformation.db-name";
 
+  /**
+   * Used by {@link LakeFormationAwsClientFactory}. The maximum size of the lakeformation
+   * credentials cache, default to 100.
+   */
+  public static final String LAKE_FORMATION_MAX_CACHE_SIZE = "lakeformation.max-cache-size";
+
+  public static final int LAKE_FORMATION_MAX_CACHE_SIZE_DEFAULT = 100;
+
+  /**
+   * Used by {@link LakeFormationAwsClientFactory}. The expiry time of the cached lakeformation
+   * credentials in milliseconds, default to 30 minutes.
+   */
+  public static final String LAKE_FORMATION_CACHE_EXPIRY_MILLIS =
+      "lakeformation.cache-expiry-millis";
+
+  public static final long LAKE_FORMATION_CACHE_EXPIRY_MILLIS_DEFAULT = 30 * 60000;

Review Comment:
   or TimeUnit.MINUTES.toMillis(30);



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org