Skip to content

Commit

Permalink
fix: disable Vert.x instance file caching
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa committed Apr 19, 2023
1 parent 2fcc9de commit f07dbba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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) {
Expand Down

0 comments on commit f07dbba

Please sign in to comment.