From 3bd651e01eee911c52b140845c650cf9f3cc05af Mon Sep 17 00:00:00 2001 From: Marc Nuri Date: Tue, 11 Apr 2023 17:10:30 +0200 Subject: [PATCH] fix: disable Vert.x instance file caching Signed-off-by: Marc Nuri --- CHANGELOG.md | 1 + .../kubernetes/client/vertx/VertxHttpClientFactory.java | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4606010e7aa..e2ffa45dd28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ * fix #5002: Jetty response completion accounts for header processing * Fix #5009: addressing issue with serialization of wrapped polymophic types * Fix #5020: updating the resourceVersion on a delete with finalizers +* Fix #5044: disable Vert.x instance file caching #### Improvements * Fix #4434: Update CronJobIT to use `batch/v1` CronJob instead diff --git a/httpclient-vertx/src/main/java/io/fabric8/kubernetes/client/vertx/VertxHttpClientFactory.java b/httpclient-vertx/src/main/java/io/fabric8/kubernetes/client/vertx/VertxHttpClientFactory.java index f4bb96797f5..dc82a2f2b93 100644 --- a/httpclient-vertx/src/main/java/io/fabric8/kubernetes/client/vertx/VertxHttpClientFactory.java +++ b/httpclient-vertx/src/main/java/io/fabric8/kubernetes/client/vertx/VertxHttpClientFactory.java @@ -18,6 +18,7 @@ import io.vertx.core.Vertx; import io.vertx.core.VertxOptions; +import io.vertx.core.file.FileSystemOptions; import static io.vertx.core.spi.resolver.ResolverProvider.DISABLE_DNS_RESOLVER_PROP_NAME; @@ -43,7 +44,8 @@ private static synchronized Vertx createVertxInstance() { Vertx vertx; try { System.setProperty(DISABLE_DNS_RESOLVER_PROP_NAME, "true"); - vertx = Vertx.vertx(new VertxOptions()); + vertx = Vertx.vertx(new VertxOptions() + .setFileSystemOptions(new FileSystemOptions().setFileCachingEnabled(false).setClassPathResolvingEnabled(false))); } finally { // Restore the original value if (originalValue == null) {