Skip to content

Commit 1728ae6

Browse files
committed
Update bulk call to directly use bulk response without parsing
Signed-off-by: Daniel Widdis <[email protected]>
1 parent 9b09f4c commit 1728ae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/src/main/java/org/opensearch/ml/action/undeploy/TransportUndeployModelAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void processUndeployModelResponseAndUpdate(
213213
wrappedListener.onFailure(cause);
214214
} else {
215215
try {
216-
BulkResponse bulkResponse = BulkResponse.fromXContent(r.parser());
216+
BulkResponse bulkResponse = r.bulkResponse();
217217
log
218218
.info(
219219
"Executed {} bulk operations with {} failures, Took: {}",

0 commit comments

Comments
 (0)