From f07dbbad5010945eeca47b60056c48a1e26e4580 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 ec4301b9b65..9b655785f15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ * Fix #5009: addressing issue with serialization of wrapped polymophic types * Fix #5020: updating the resourceVersion on a delete with finalizers * Fix #5033: port forwarding for clients other than okhttp needs to specify the subprotocol +* 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) {