Skip to content

[BUG] OpenSearchNodesClient#info is unable to parse custom roles #893

@dennisoelkers

Description

@dennisoelkers

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions