From a96fa4e486ac89b0b1f0abbeff9771d77030db22 Mon Sep 17 00:00:00 2001 From: Mark Wolters Date: Wed, 10 Apr 2024 12:21:47 -0400 Subject: [PATCH] fixed bug on checksum check --- .../java/io/nosqlbench/nb/api/nbio/ResolverForNBIOCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nb-api/src/main/java/io/nosqlbench/nb/api/nbio/ResolverForNBIOCache.java b/nb-api/src/main/java/io/nosqlbench/nb/api/nbio/ResolverForNBIOCache.java index 1b51bb489..f9b18543c 100644 --- a/nb-api/src/main/java/io/nosqlbench/nb/api/nbio/ResolverForNBIOCache.java +++ b/nb-api/src/main/java/io/nosqlbench/nb/api/nbio/ResolverForNBIOCache.java @@ -85,7 +85,7 @@ public class ResolverForNBIOCache implements ContentResolver { logger.info(() -> "Downloading remote file " + uri + " to cache at " + cachePath); Files.copy(urlContent.getInputStream(), cachePath); logger.info(() -> "Downloaded remote file to cache at " + cachePath); - if(checksum != null && verifyChecksum(cachePath, checksum)) { + if(checksum == null || verifyChecksum(cachePath, checksum)) { success = true; break; }