shaipan commented on code in PR #22840:
URL: https://github.com/apache/camel/pull/22840#discussion_r3167231591
##########
components/camel-salesforce/camel-salesforce-component/src/main/java/org/apache/camel/component/salesforce/internal/streaming/SubscriptionHelper.java:
##########
@@ -255,6 +261,9 @@ private void subscriptionFailed(StreamingApiConsumer
firstConsumer, Message mess
for (var consumer : consumers) {
subscribe(consumer);
}
+ } else if (error.matches(CHANNEL_INVALID_PATTERN)) {
+ LOG.warn("Channel invalid for channel {}, removing from
subscription list", channelName);
+ channelsToSubscribe.remove(channelName);
Review Comment:
Keeping abort = true here intentionally. An invalid channel is a permanent
error. consumers should be notified so the issue surfaces rather than being
silently ignored.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]