Skip to content

Conversation

@martijnvg
Copy link
Member

Return empty response when querying all auto follow patterns,
but there is no auto follow metadata.

Return empty response when querying all auto follow patterns, but there is no auto follow metadata.
@martijnvg martijnvg added >non-issue :Distributed Indexing/CCR Issues around the Cross Cluster State Replication features labels Nov 8, 2018
@martijnvg martijnvg requested a review from jasontedor November 8, 2018 15:41
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Contributor

@bleskes bleskes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Maybe add a rest test too?

@martijnvg
Copy link
Member Author

Maybe add a rest test too?

A rest test is the ultimate verification whether this works, but I don't think we should add a rest for all possible ways an API can be used. In this case just having a unit test that verifies whether an empty map is returned or an illegal argument is thrown is sufficient, because we now how an empty map gets serialized and how a ResourceNotFoundException gets serialized on the rest layer.

@martijnvg martijnvg merged commit 83152b3 into elastic:master Nov 9, 2018
martijnvg added a commit that referenced this pull request Nov 9, 2018
Return empty response when querying all auto follow patterns, but there is no auto follow metadata.
martijnvg added a commit that referenced this pull request Nov 9, 2018
Return empty response when querying all auto follow patterns, but there is no auto follow metadata.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed Indexing/CCR Issues around the Cross Cluster State Replication features >non-issue

3 participants