Skip to content

Commit d1d497d

Browse files
committed
fix(batch): handle happy path
BatchContext can deal with happy path, i.e. no oom, no shutdowns, etc.
1 parent 7c1e2bc commit d1d497d

4 files changed

Lines changed: 138 additions & 119 deletions

File tree

src/main/java/io/weaviate/client6/v1/api/collections/batch/Batch.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ synchronized Collection<String> clear() {
267267

268268
Set<String> removed = Set.copyOf(buffer.keySet());
269269
buffer.clear();
270+
sizeBytes = 0;
270271

271272
if (pendingMaxSize.isPresent()) {
272273
setMaxSize(pendingMaxSize.getAsInt());

0 commit comments

Comments
 (0)