From ee43c3a024ab32ba7fac13155c6c7290b55900b5 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Fri, 5 Apr 2024 18:43:18 -0500 Subject: [PATCH] cleanups --- .../io/nosqlbench/adapter/milvus/ops/MilvusDescribeIndexOp.java | 2 +- .../io/nosqlbench/adapters/api/scheduling/TimeoutPredicate.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/adapter-milvus/src/main/java/io/nosqlbench/adapter/milvus/ops/MilvusDescribeIndexOp.java b/adapter-milvus/src/main/java/io/nosqlbench/adapter/milvus/ops/MilvusDescribeIndexOp.java index e23aea7df..168ad87fb 100644 --- a/adapter-milvus/src/main/java/io/nosqlbench/adapter/milvus/ops/MilvusDescribeIndexOp.java +++ b/adapter-milvus/src/main/java/io/nosqlbench/adapter/milvus/ops/MilvusDescribeIndexOp.java @@ -84,7 +84,7 @@ public class MilvusDescribeIndexOp extends MilvusBaseOp impl return stream().mapToInt(IndexStat::percent).min().orElse(0); } } - public static final record IndexStat( + public record IndexStat( String index_name, long indexed_rows, long pending_rows diff --git a/adapters-api/src/main/java/io/nosqlbench/adapters/api/scheduling/TimeoutPredicate.java b/adapters-api/src/main/java/io/nosqlbench/adapters/api/scheduling/TimeoutPredicate.java index 8b0ce6cd4..62b7f40f2 100644 --- a/adapters-api/src/main/java/io/nosqlbench/adapters/api/scheduling/TimeoutPredicate.java +++ b/adapters-api/src/main/java/io/nosqlbench/adapters/api/scheduling/TimeoutPredicate.java @@ -91,10 +91,8 @@ public class TimeoutPredicate { if (isComplete) { return new Result<>(value, Status.complete, totalNanos, timeoutNanos, null); } else if (remaining > 0) { -// System.out.println("pulse:" + pulseTime + " end:" + endNanos + " remaining:" + remaining); return new Result<>(value, Status.pending, totalNanos, timeoutNanos, null); } else { -// System.out.println("pulse:" + pulseTime + " end:" + endNanos + " remaining:" + remaining); return new Result<>(value, Status.incomplete, totalNanos, timeoutNanos, null); } } catch (Exception e) {