This commit is contained in:
Jonathan Shook 2024-04-05 18:43:18 -05:00
parent e99acba7a0
commit ee43c3a024
2 changed files with 1 additions and 3 deletions

View File

@ -84,7 +84,7 @@ public class MilvusDescribeIndexOp extends MilvusBaseOp<DescribeIndexParam> 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

View File

@ -91,10 +91,8 @@ public class TimeoutPredicate<T> {
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) {