Skip to content

cluster discovery: discard non-list result #196

Closed
@Totktonada

Description

@Totktonada

From README:

A discovery function should return a single result of strings (i.e. single string return 'host:3301' or array of strings return {'host1:3301', 'host2:3301'}).

I think there is no reason to support single string result. However if we'll support it here it will push other connectors to support it too (because a user that see correct result with tarantool-java will expect they will be correct with another connector too).

I propose to forbid support of this single string response format and allow only a list of strings result.

Validation rules and to be defined and maybe should be strictier that now and consistent with other connectors. Maybe this should not be handled with the scope of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions