[
https://issues.apache.org/jira/browse/CAMEL-16559?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dietrich Schulten updated CAMEL-16559:
--------------------------------------
Description:
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.
was:
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.
> 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
> Priority: Major
>
> 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)