[
https://issues.apache.org/jira/browse/CAMEL-27894?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-27894:
--------------------------------
Description:
Found while improving the option descriptions of camel-ignite for CAMEL-23832
(commit
https://github.com/apache/camel/commit/75db9fd61fefdeccafd7be357062dd8e7ba31805,
pull request https://github.com/apache/camel/pull/31159).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. The config. prefix of ignite-queue and ignite-set fails
The IgniteQueueEndpoint and IgniteSetEndpoint constructors bind the extracted
config.* properties onto the parameters map, not onto the configuration, so
?config.backups=2 fails with "Unknown parameters=[{backups=2}]"
(configuration.backups=3 works through normal nested binding).
Proposed change: remove the block.
h4. 2. The events option mishandles names and groups
{{IgniteEventsEndpoint.getEventsAsIds}} does not trim names ("A, B" drops B),
ignores unknown names (when none is known, IgniteEvents.localListen fails at
start), throws IllegalArgumentException for the EVTS_* groups (int[] fields),
and "evts_all" fails because the EVTS_ALL check is case-sensitive.
Proposed change: trim, accept the groups, and fail on unknown names.
h4. 3. clusterGroupExpression has no effect on consumers
On ignite-events, IgniteEvents.localListen ignores the cluster group; on the
ignite-messaging consumer, IgniteMessaging.localListen does not limit the
senders either.
Proposed change: deprecate it for the consumers, or use remoteListen.
_Claude Code on behalf of davsclaus_
was:
Found while improving the option descriptions of camel-ignite for CAMEL-23832
(pull request https://github.com/apache/camel/pull/31159).
These are separate problems of the component; the descriptions change only
documents the current behavior.
h4. 1. The config. prefix of ignite-queue and ignite-set fails
The IgniteQueueEndpoint and IgniteSetEndpoint constructors bind the extracted
config.* properties onto the parameters map, not onto the configuration, so
?config.backups=2 fails with "Unknown parameters=[{backups=2}]"
(configuration.backups=3 works through normal nested binding).
Proposed change: remove the block.
h4. 2. The events option mishandles names and groups
{{IgniteEventsEndpoint.getEventsAsIds}} does not trim names ("A, B" drops B),
ignores unknown names (when none is known, IgniteEvents.localListen fails at
start), throws IllegalArgumentException for the EVTS_* groups (int[] fields),
and "evts_all" fails because the EVTS_ALL check is case-sensitive.
Proposed change: trim, accept the groups, and fail on unknown names.
h4. 3. clusterGroupExpression has no effect on consumers
On ignite-events, IgniteEvents.localListen ignores the cluster group; on the
ignite-messaging consumer, IgniteMessaging.localListen does not limit the
senders either.
Proposed change: deprecate it for the consumers, or use remoteListen.
_Claude Code on behalf of davsclaus_
> camel-ignite: the config. prefix of queue and set fails, the events option
> mishandles names and groups, clusterGroupExpression has no effect on consumers
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-27894
> URL: https://issues.apache.org/jira/browse/CAMEL-27894
> Project: Camel
> Issue Type: Bug
> Components: camel-ignite
> Reporter: Claus Ibsen
> Priority: Minor
> Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-ignite for CAMEL-23832
> (commit
> https://github.com/apache/camel/commit/75db9fd61fefdeccafd7be357062dd8e7ba31805,
> pull request https://github.com/apache/camel/pull/31159).
> These are separate problems of the component; the descriptions change only
> documents the current behavior.
> h4. 1. The config. prefix of ignite-queue and ignite-set fails
> The IgniteQueueEndpoint and IgniteSetEndpoint constructors bind the extracted
> config.* properties onto the parameters map, not onto the configuration, so
> ?config.backups=2 fails with "Unknown parameters=[{backups=2}]"
> (configuration.backups=3 works through normal nested binding).
> Proposed change: remove the block.
> h4. 2. The events option mishandles names and groups
> {{IgniteEventsEndpoint.getEventsAsIds}} does not trim names ("A, B" drops B),
> ignores unknown names (when none is known, IgniteEvents.localListen fails at
> start), throws IllegalArgumentException for the EVTS_* groups (int[] fields),
> and "evts_all" fails because the EVTS_ALL check is case-sensitive.
> Proposed change: trim, accept the groups, and fail on unknown names.
> h4. 3. clusterGroupExpression has no effect on consumers
> On ignite-events, IgniteEvents.localListen ignores the cluster group; on the
> ignite-messaging consumer, IgniteMessaging.localListen does not limit the
> senders either.
> Proposed change: deprecate it for the consumers, or use remoteListen.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)