[
https://issues.apache.org/jira/browse/CAMEL-27406?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Saravanakumar Selvaraj updated CAMEL-27406:
-------------------------------------------
Description:
Found while reviewing the descriptions of camel-alibaba-mns for CAMEL-23832.
The description of https://github.com/apache/camel/pull/30563 reported the four
labels and did not change them.
1. operation has no label, but only the producer reads it. MNSProducer reads it
through MNSUtils.resolveOperation. The doc page says that the consumer does not
use the option. MNSEndpoint.resolveConsumerOperation would return it for a
consumer, but nothing calls that method. CAMEL-26520 covers the deprecation of
that method.
2. topicName has no label, but only the producer reads it, for publishMessage.
A topic endpoint has no consumer: MNSEndpoint.createConsumer throws an
exception for it.
3. waitSeconds has no label, but only the consumer reads it. MNSConsumer passes
it to the call that receives the messages.
4. The header CamelAlibabaMnsPriority has the label producer, but the consumer
sets it too. MNSConsumer sets it to the priority of a received message, as its
description says. The three other headers that both sides use have the label
common.
Because the three options have no label:
- The catalog lists them in the group common.
- The Endpoint DSL offers all three on the consumer builder and on the producer
builder.
- In consumer-only mode, the catalog validation accepts operation and
topicName. In producer-only mode, it accepts waitSeconds. In that mode it
reports deleteAfterRead, which has the label consumer.
Proposed change:
- operation and topicName: the label producer.
- waitSeconds: the label consumer.
- CamelAlibabaMnsPriority: the label common.
The change removes operation and topicName from the consumer builder of the
Endpoint DSL, and waitSeconds from the producer builder. The options had no
effect on those sides. The upgrade guide needs an entry for it.
Checked on main at c8a22129ea. The tag camel-4.23.0 has the same four labels
and the same uses in the code. The validation results come from a run of the
catalog classes with the component JSON of that commit.
_Claude Code on behalf of saravanakumar1987_
was:
Found while reviewing the descriptions of camel-alibaba-mns for CAMEL-23832.
The description of https://github.com/apache/camel/pull/30563 reported the four
labels and did not change them.
1. operation has no label, but only the producer reads it. MNSProducer reads it
through MNSUtils.resolveOperation. The doc page says that the consumer does not
use the option. MNSEndpoint.resolveConsumerOperation would return it for a
consumer, but nothing calls that method.
2. topicName has no label, but only the producer reads it, for publishMessage.
A topic endpoint has no consumer: MNSEndpoint.createConsumer throws an
exception for it.
3. waitSeconds has no label, but only the consumer reads it. MNSConsumer passes
it to the call that receives the messages.
4. The header CamelAlibabaMnsPriority has the label producer, but the consumer
sets it too. MNSConsumer sets it to the priority of a received message, as its
description says. The three other headers that both sides use have the label
common.
Because the three options have no label:
- The catalog lists them in the group common.
- The Endpoint DSL offers all three on the consumer builder and on the producer
builder.
- In consumer-only mode, the catalog validation accepts operation and
topicName. In producer-only mode, it accepts waitSeconds. In that mode it
reports deleteAfterRead, which has the label consumer.
Proposed change:
- operation and topicName: the label producer.
- waitSeconds: the label consumer.
- CamelAlibabaMnsPriority: the label common.
- MNSEndpoint.resolveConsumerOperation: deprecated, as it has no caller.
The change removes operation and topicName from the consumer builder of the
Endpoint DSL, and waitSeconds from the producer builder. The options had no
effect on those sides. The upgrade guide needs an entry for it.
Checked on main at c8a22129ea. The tag camel-4.23.0 has the same four labels
and the same uses in the code. The validation results come from a run of the
catalog classes with the component JSON of that commit.
_Claude Code on behalf of saravanakumar1987_
> camel-alibaba-mns: the labels of operation, topicName, waitSeconds and
> CamelAlibabaMnsPriority do not match the code
> --------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27406
> URL: https://issues.apache.org/jira/browse/CAMEL-27406
> Project: Camel
> Issue Type: Bug
> Affects Versions: 4.23.0
> Reporter: Saravanakumar Selvaraj
> Assignee: Saravanakumar Selvaraj
> Priority: Minor
>
> Found while reviewing the descriptions of camel-alibaba-mns for CAMEL-23832.
> The description of https://github.com/apache/camel/pull/30563 reported the
> four labels and did not change them.
> 1. operation has no label, but only the producer reads it. MNSProducer reads
> it through MNSUtils.resolveOperation. The doc page says that the consumer
> does not use the option. MNSEndpoint.resolveConsumerOperation would return it
> for a consumer, but nothing calls that method. CAMEL-26520 covers the
> deprecation of that method.
> 2. topicName has no label, but only the producer reads it, for
> publishMessage. A topic endpoint has no consumer: MNSEndpoint.createConsumer
> throws an exception for it.
> 3. waitSeconds has no label, but only the consumer reads it. MNSConsumer
> passes it to the call that receives the messages.
> 4. The header CamelAlibabaMnsPriority has the label producer, but the
> consumer sets it too. MNSConsumer sets it to the priority of a received
> message, as its description says. The three other headers that both sides use
> have the label common.
> Because the three options have no label:
> - The catalog lists them in the group common.
> - The Endpoint DSL offers all three on the consumer builder and on the
> producer builder.
> - In consumer-only mode, the catalog validation accepts operation and
> topicName. In producer-only mode, it accepts waitSeconds. In that mode it
> reports deleteAfterRead, which has the label consumer.
> Proposed change:
> - operation and topicName: the label producer.
> - waitSeconds: the label consumer.
> - CamelAlibabaMnsPriority: the label common.
> The change removes operation and topicName from the consumer builder of the
> Endpoint DSL, and waitSeconds from the producer builder. The options had no
> effect on those sides. The upgrade guide needs an entry for it.
> Checked on main at c8a22129ea. The tag camel-4.23.0 has the same four labels
> and the same uses in the code. The validation results come from a run of the
> catalog classes with the component JSON of that commit.
> _Claude Code on behalf of saravanakumar1987_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)