Open slovdahl opened 1 year ago
Hello, thanks for the report! I'll have to investigate this a bit more because NodeAllocationExplanation.deciders
seems to be required server side, so I'm not sure how it's missing, also while trying to replicate it I got another error saying that NodeAllocationExplanation.weightRanking
is missing... which should be required as well! In any case it looks like an API specification bug, once solved the java client will be generated to fix the issue.
Java API client version
7.17.6
Java version
1.8.0_345
Elasticsearch Version
7.17.6
Problem description
Unfortunately I don't have the raw JSON response, I just saw the exception below in CI.
I skimmed through the changes between 7.17.6 and 7.17.7 and AFAICT this specific problem has not been fixed since 7.17.6. We do a
client.cluster().allocationExplain()
request and output the result if index creation fails or if the cluster health is not green in our integration tests, and I think shard allocation had been throttled when this happened. However, right after this exception, the same CI job also successfully parsed anallocation explain
response for throttled allocation: