What is the bug?
When a node exists in the cluster having a (custom) role which is not listed in NodeRole, executing OpenSearchClient#nodes#info fails with a JsonParsingException: Invalid enum 'customrole'.
How can one reproduce the bug?
Start a node in the cluster with a custom role.
What is the expected behavior?
OpenSearchClient#nodes#info should succeed, either stripping the custom role from the list of roles of that node, or returning a collection of strings instead of enums.
What is your host/environment?
Operating system, version.
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.
What is the bug?
When a node exists in the cluster having a (custom) role which is not listed in
NodeRole, executingOpenSearchClient#nodes#infofails with aJsonParsingException: Invalid enum 'customrole'.How can one reproduce the bug?
Start a node in the cluster with a custom role.
What is the expected behavior?
OpenSearchClient#nodes#infoshould succeed, either stripping the custom role from the list of roles of that node, or returning a collection of strings instead of enums.What is your host/environment?
Operating system, version.
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.