We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4645d commit 270f726Copy full SHA for 270f726
1 file changed
src/main/java/io/weaviate/client6/v1/api/collections/batch/BatchContext.java
@@ -173,7 +173,7 @@ void setClosing(Exception ex) {
173
174
this.queue = new ArrayBlockingQueue<>(DEFAULT_QUEUE_SIZE);
175
this.batch = new Batch(DEFAULT_BATCH_SIZE, maxSizeBytes);
176
- setState(CLOSED);
+ setState(OPENED);
177
178
}
179
@@ -835,6 +835,13 @@ List<Runnable> shutdownNow() {
835
836
837
838
+ final State OPENED = new BaseState("OPENED") {
839
+ @Override
840
+ public void onEnter(State prev) {
841
+ closed = false;
842
+ }
843
+ };
844
+
845
final State CLOSED = new BaseState("CLOSED") {
846
@Override
847
public void onEnter(State prev) {
0 commit comments