World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
Java ai-catalogdata-catalogdatalakefederated-querylakehousemetadatametalakemodel-catalogopendatacatalogskycomputingstratosphere
[#3928] improvement(filesystem): Increase default cache time to 1 hour (#3932)
xloya5ab17641960e
diff --git a/clients/client-python/gravitino/filesystem/gvfs.py b/clients/client-python/gravitino/filesystem/gvfs.pyindex 8e978fb0f1..f184f0e6f5 100644--- a/clients/client-python/gravitino/filesystem/gvfs.py+++ b/clients/client-python/gravitino/filesystem/gvfs.py@@ -83,7 +83,7 @@ class GravitinoVirtualFileSystem(fsspec.AbstractFileSystem):server_uri=None,metalake_name=None,cache_size=20,- cache_expired_time=300,+ cache_expired_time=3600,**kwargs,):self._metalake = metalake_namediff --git a/clients/filesystem-hadoop3/src/main/java/com/datastrato/gravitino/filesystem/hadoop/GravitinoVirtualFileSystemConfiguration.java b/clients/filesystem-hadoop3/src/main/java/com/datastrato/gravitino/filesystem/hadoop/GravitinoVirtualFileSystemConfiguration.javaindex 323a1eb09c..b352c3d10a 100644--- a/clients/filesystem-hadoop3/src/main/java/com/datastrato/gravitino/filesystem/hadoop/GravitinoVirtualFileSystemConfiguration.java+++ b/clients/filesystem-hadoop3/src/main/java/com/datastrato/gravitino/filesystem/hadoop/GravitinoVirtualFileSystemConfiguration.java@@ -60,7 +60,7 @@ class GravitinoVirtualFileSystemConfiguration {"fs.gravitino.fileset.cache.evictionMillsAfterAccess";public static final long FS_GRAVITINO_FILESET_CACHE_EVICTION_MILLS_AFTER_ACCESS_DEFAULT =- 1000L * 60 * 5;+ 1000L * 60 * 60;private GravitinoVirtualFileSystemConfiguration() {}}diff --git a/docs/how-to-use-gvfs.md b/docs/how-to-use-gvfs.mdindex a5565bdf8f..7a581f22d4 100644--- a/docs/how-to-use-gvfs.md+++ b/docs/how-to-use-gvfs.md@@ -55,7 +55,7 @@ the path mapping and convert automatically.| `fs.gravitino.client.kerberos.principal` | The auth principal for the Gravitino client when using `kerberos` auth type with the Gravitino Virtual File System. | (none) | Yes if you use `kerberos` auth type | 0.5.1 || `fs.gravitino.client.kerberos.keytabFilePath` | The auth keytab file path for the Gravitino client when using `kerberos` auth type in the Gravitino Virtual File System. | (none) | No | 0.5.1 || `fs.gravitino.fileset.cache.maxCapacity` | The cache capacity of the Gravitino Virtual File System. | `20` | No | 0.5.0 |-| `fs.gravitino.fileset.cache.evictionMillsAfterAccess` | The value of time that the cache expires after accessing in the Gravitino Virtual File System. The value is in `milliseconds`. | `300000` | No | 0.5.0 |+| `fs.gravitino.fileset.cache.evictionMillsAfterAccess` | The value of time that the cache expires after accessing in the Gravitino Virtual File System. The value is in `milliseconds`. | `3600000` | No | 0.5.0 |You can configure these properties in two ways: