Skip to content

Commit a4c5c84

Browse files
ylwu-amznb4sjoo
andauthored
[Backport to main] tune error message for no ML node case (opensearch-project#780)
* Adding ml-commons plugin v2.5.0 release note (opensearch-project#696) Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Sicheng Song <[email protected]> * tune error message for no ML node case (opensearch-project#699) Signed-off-by: Yaliang Wu <[email protected]> Signed-off-by: Yaliang Wu <[email protected]> --------- Signed-off-by: Sicheng Song <[email protected]> Signed-off-by: Yaliang Wu <[email protected]> Co-authored-by: Sicheng Song <[email protected]>
1 parent 56cdb85 commit a4c5c84

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

plugin/src/main/java/org/opensearch/ml/task/MLTaskDispatcher.java

+6-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,12 @@ private void dispatchTaskWithLeastLoad(ActionListener<DiscoveryNode> listener) {
167167
private void dispatchTaskWithRoundRobin(ActionListener<DiscoveryNode> listener) {
168168
DiscoveryNode[] eligibleNodes = nodeHelper.getEligibleNodes();
169169
if (eligibleNodes == null || eligibleNodes.length == 0) {
170-
throw new MLResourceNotFoundException("no eligible node found, ml node is required to run this request");
170+
throw new MLResourceNotFoundException(
171+
"No eligible node found to execute this request. It's best practice to"
172+
+ " provision ML nodes to serve your models. You can disable this setting to serve the model on your data"
173+
+ " node for development purposes by disabling the \"plugins.ml_commons.only_run_on_ml_node\" "
174+
+ "configuration using the _cluster/setting api"
175+
);
171176
}
172177
dispatchTaskWithRoundRobin(eligibleNodes, listener);
173178
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## Version 2.5.0.0 Release Notes
2+
3+
Compatible with OpenSearch 2.5.0
4+
5+
### Features
6+
* Add native memory circuit breaker. ([#689](https://github.com/opensearch-project/ml-commons/pull/689))
7+
8+
### Enhancements
9+
* add more parameters for text embedding model ([#640](https://github.com/opensearch-project/ml-commons/pull/640))
10+
* add more pooling method and refactor ([#672](https://github.com/opensearch-project/ml-commons/pull/672))
11+
* add ML task timeout setting and clean up expired tasks from cache ([#662](https://github.com/opensearch-project/ml-commons/pull/662))
12+
* change only run on ml node setting default value to true ([#686](https://github.com/opensearch-project/ml-commons/pull/686))
13+
14+
### Infrastructure
15+
* unit tests coverage for load/unload/syncup ([#592](https://github.com/opensearch-project/ml-commons/pull/592))
16+
* Add .whitesource configuration file ([#626](https://github.com/opensearch-project/ml-commons/pull/626))
17+
* bump djl to 0.20 and add onnxruntime-gpu dependency ([#644](https://github.com/opensearch-project/ml-commons/pull/644))
18+
* Remove jackson-databind and jackson-annotations dependencies now coming from core ([#652](https://github.com/opensearch-project/ml-commons/pull/652))
19+
* Revert "Remove jackson-databind and jackson-annotations dependencies now coming from core" ([#687](https://github.com/opensearch-project/ml-commons/pull/687))
20+
* Adding backwards compatibility test for ml-commons plugin ([#681](https://github.com/opensearch-project/ml-commons/pull/681))
21+
* Change the inheritance of the BWC test file ([#692](https://github.com/opensearch-project/ml-commons/pull/692))
22+
23+
### Documentation
24+
25+
* Updated MAINTAINERS.md format ([#668](https://github.com/opensearch-project/ml-commons/pull/668))
26+
* Updating maintainers list ([#663](https://github.com/opensearch-project/ml-commons/pull/663))
27+
* add doc about how to setup GPU ML node ([#677](https://github.com/opensearch-project/ml-commons/pull/677))
28+
29+
### Maintenance
30+
31+
* Increment version to 2.5.0-SNAPSHOT ([#513](https://github.com/opensearch-project/ml-commons/pull/513))
32+
33+
### Refactoring
34+
35+
* change task worker node to list; add target worker node to cache ([#656](https://github.com/opensearch-project/ml-commons/pull/656))

0 commit comments

Comments
 (0)