opensearch-project / ml-commons

ml-commons provides a set of common machine learning algorithms, e.g. k-means, or linear regression, to help developers build ML related features within OpenSearch.
Apache License 2.0
75 stars 108 forks source link

[BUG] Support multi-node cluster for search index tool IT #2362

Open yuye-aws opened 3 weeks ago

yuye-aws commented 3 weeks ago

What is the bug? Search index tool IT gets failed for multi-node cluster.

How can one reproduce the bug? Run search index tool IT with command:

./gradlew opensearch-ml-plugin:integTest --tests "org.opensearch.ml.rest.RestSearchIndexToolIT" -PnumNodes=3 What is the expected behavior? Search index tool should be successful for both single-node cluster and multi-node cluster.

What is your host/environment? Mac and Linux

Do you have any screenshots? If applicable, add screenshots to help explain your problem.

Do you have any additional context? Add any other context about the problem.

yuye-aws commented 1 week ago

Raised a PR to resolve this issue: https://github.com/opensearch-project/ml-commons/issues/2362. Can someone help review?