Anshu Agarwal
Anshu Agarwal
Should we change ```_local``` to ```local``` in ```GET _cluster/shard_routing/weights?_local``` to keep it consistent with other _cluster/* apis like _cluster/state.
> Default looks like - {"msg":"Weights are not set"}. Shouldn't we just return empty object {} Will make the response empty object
Seeing unrelated test failures
> Can we add integ tests for the API Added Integ tests
Build failing due to unrelated test failures ```[org.opensearch.client.PitIT.testDeleteAllAndListAllPits](https://build.ci.opensearch.org/job/gradle-check/3898/testReport/junit/org.opensearch.client/PitIT/testDeleteAllAndListAllPits/) [org.opensearch.qa.verify_version_constants.VerifyVersionConstantsIT.testLuceneVersionConstant](https://build.ci.opensearch.org/job/gradle-check/3898/testReport/junit/org.opensearch.qa.verify_version_constants/VerifyVersionConstantsIT/testLuceneVersionConstant/) [org.opensearch.qa.verify_version_constants.VerifyVersionConstantsIT.testLuceneVersionConstant](https://build.ci.opensearch.org/job/gradle-check/3898/testReport/junit/org.opensearch.qa.verify_version_constants/VerifyVersionConstantsIT/testLuceneVersionConstant_2/) [org.opensearch.qa.verify_version_constants.VerifyVersionConstantsIT.testLuceneVersionConstant](https://build.ci.opensearch.org/job/gradle-check/3898/testReport/junit/org.opensearch.qa.verify_version_constants/VerifyVersionConstantsIT/testLuceneVersionConstant_3/) [org.opensearch.qa.verify_version_constants.VerifyVersionConstantsIT.testLuceneVersionConstant](https://build.ci.opensearch.org/job/gradle-check/3898/testReport/junit/org.opensearch.qa.verify_version_constants/VerifyVersionConstantsIT/testLuceneVersionConstant_4/)``` Rebasing from main to see if that fixes the build
https://github.com/opensearch-project/OpenSearch/pull/4241#discussion_r971681349 https://github.com/opensearch-project/OpenSearch/pull/4241#discussion_r971684094
Closing this issue. This is fixed in [4241](https://github.com/opensearch-project/OpenSearch/pull/4241)
@Janezzliu Were you able to run this successfully. I am getting the same error.
@CODEJY Thanks a lot. Was struggling to solve this problem for a long time. It helped.