Skip to content

Commit

Permalink
fix no worker node error on multi-node cluster (opensearch-project#1487
Browse files Browse the repository at this point in the history
…) (opensearch-project#1513)

Signed-off-by: Yaliang Wu <[email protected]>
(cherry picked from commit cea1cd6)

Co-authored-by: Yaliang Wu <[email protected]>
  • Loading branch information
2 people authored and rbhavna committed Nov 16, 2023
1 parent 17e0178 commit bf7b104
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ public void onFailure(Exception e) {

if (cachedMlModel != null) {
modelActionListener.onResponse(cachedMlModel);
} else if (modelAccessControlHelper.skipModelAccessControl(user)) {
executePredict(mlPredictionTaskRequest, wrappedListener, modelId);
} else {
// For multi-node cluster, the function name is null in cache, so should always get model first.
mlModelManager.getModel(modelId, modelActionListener);
}
}
Expand Down

0 comments on commit bf7b104

Please sign in to comment.