Skip to content

Commit e39f503

Browse files
committed
[feat] Adjusted several default parameters and descriptions in the Loader, and refactored the failure-handling logic for batch inserts.
1 parent ceaed28 commit e39f503

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hugegraph-loader/src/main/java/org/apache/hugegraph/loader/task/TaskManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,13 @@ public void submitBatch(InputStruct struct, ElementMapping mapping,
162162
mapping.type(), e);
163163
this.submitInSingle(struct, mapping, batch);
164164
} else {
165-
summary.metrics(struct).minusFlighting(batch.size());
166165
this.context.occurredError();
167166
this.context.stopLoading();
168167
Printer.printError("Batch insert %s failed, stop loading. Please check the logs",
169168
mapping.type().string());
170169
}
170+
} else {
171+
summary.metrics(struct).minusFlighting(batch.size());
171172
}
172173

173174
this.batchSemaphore.release();

0 commit comments

Comments
 (0)