You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Dietrich Schulten (Jira)" <ji...@apache.org> on 2021/04/29 06:43:00 UTC

[jira] [Created] (CAMEL-16559) Consul catalog action "LIST_SERVICES" calls CatalogClient.getNodes

Dietrich Schulten created CAMEL-16559:
-----------------------------------------

             Summary: Consul catalog action "LIST_SERVICES" calls CatalogClient.getNodes
                 Key: CAMEL-16559
                 URL: https://issues.apache.org/jira/browse/CAMEL-16559
             Project: Camel
          Issue Type: Bug
          Components: camel-consul
    Affects Versions: 3.9.0
            Reporter: Dietrich Schulten


Probably a copy-paste error in {{ConsulCatalogProducer}}. The handler for {{LIST_SERVICES}} calls {{getNodes}}: 
{code:java}
 @InvokeOnHeader(ConsulCatalogActions.LIST_NODES)
protected void listNodes(Message message) throws Exception {
    processConsulResponse(message, getClient().getNodes(buildQueryOptions(message, getConfiguration())));
}

@InvokeOnHeader(ConsulCatalogActions.LIST_SERVICES)
protected void listServices(Message message) throws Exception {
    processConsulResponse(message, getClient().getNodes(buildQueryOptions(message, getConfiguration())));
}{code}
 Should call {{getServices(queryOptions)}} instead.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)