[ 
https://issues.apache.org/jira/browse/CAMEL-27941?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-27941:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-google-pubsub for 
CAMEL-23832 (commit 
https://github.com/apache/camel/commit/d5a852f1554249665c55be65e7b60727f2348b3f,
 pull request https://github.com/apache/camel/pull/31191).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. An invalid synchronousPullRetryableCodes value is retried forever
{{GooglePubsubComponent.getSubscriberStub}} parses 
synchronousPullRetryableCodes with StatusCode.Code.valueOf on every call, so a 
wrong name (a typo, lower case or an empty entry) throws 
IllegalArgumentException every time: the synchronous pull loop retries every 5 
s forever instead of failing at startup, and AcknowledgeSync, which uses the 
same stub, cannot ack.
Proposed change: parse and validate the list once in doInit (or the setter).

h4. 2. Smaller issues
publisherCacheSize (100), publisherCacheTimeout (180000) and 
publisherTerminationTimeout (60000) have no defaultValue in the metadata; 
publisherTerminationTimeout is labelled advanced, the other two producer. 
exchangePattern on the consumer has no effect (createConsumer forces InOnly). 
maxMessagesPerPoll is ignored by the default asynchronous consumer. 
maxAckExtensionPeriod uses the deprecated 
Subscriber.Builder.setMaxAckExtensionPeriod(org.threeten.bp.Duration); the 
current API is setMaxAckExtensionPeriodDuration(java.time.Duration). 
pubsubEndpoint is used only by the publisher.


_Claude Code on behalf of davsclaus_

  was:
Found while improving the option descriptions of camel-google-pubsub for 
CAMEL-23832 (pull request https://github.com/apache/camel/pull/31191).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. An invalid synchronousPullRetryableCodes value is retried forever
{{GooglePubsubComponent.getSubscriberStub}} parses 
synchronousPullRetryableCodes with StatusCode.Code.valueOf on every call, so a 
wrong name (a typo, lower case or an empty entry) throws 
IllegalArgumentException every time: the synchronous pull loop retries every 5 
s forever instead of failing at startup, and AcknowledgeSync, which uses the 
same stub, cannot ack.
Proposed change: parse and validate the list once in doInit (or the setter).

h4. 2. Smaller issues
publisherCacheSize (100), publisherCacheTimeout (180000) and 
publisherTerminationTimeout (60000) have no defaultValue in the metadata; 
publisherTerminationTimeout is labelled advanced, the other two producer. 
exchangePattern on the consumer has no effect (createConsumer forces InOnly). 
maxMessagesPerPoll is ignored by the default asynchronous consumer. 
maxAckExtensionPeriod uses the deprecated 
Subscriber.Builder.setMaxAckExtensionPeriod(org.threeten.bp.Duration); the 
current API is setMaxAckExtensionPeriodDuration(java.time.Duration). 
pubsubEndpoint is used only by the publisher.


_Claude Code on behalf of davsclaus_


> camel-google-pubsub: an invalid synchronousPullRetryableCodes value is 
> retried forever
> --------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27941
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27941
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-google-pubsub
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-google-pubsub for 
> CAMEL-23832 (commit 
> https://github.com/apache/camel/commit/d5a852f1554249665c55be65e7b60727f2348b3f,
>  pull request https://github.com/apache/camel/pull/31191).
> These are separate problems of the component; the descriptions change only 
> documents the current behavior.
> h4. 1. An invalid synchronousPullRetryableCodes value is retried forever
> {{GooglePubsubComponent.getSubscriberStub}} parses 
> synchronousPullRetryableCodes with StatusCode.Code.valueOf on every call, so 
> a wrong name (a typo, lower case or an empty entry) throws 
> IllegalArgumentException every time: the synchronous pull loop retries every 
> 5 s forever instead of failing at startup, and AcknowledgeSync, which uses 
> the same stub, cannot ack.
> Proposed change: parse and validate the list once in doInit (or the setter).
> h4. 2. Smaller issues
> publisherCacheSize (100), publisherCacheTimeout (180000) and 
> publisherTerminationTimeout (60000) have no defaultValue in the metadata; 
> publisherTerminationTimeout is labelled advanced, the other two producer. 
> exchangePattern on the consumer has no effect (createConsumer forces InOnly). 
> maxMessagesPerPoll is ignored by the default asynchronous consumer. 
> maxAckExtensionPeriod uses the deprecated 
> Subscriber.Builder.setMaxAckExtensionPeriod(org.threeten.bp.Duration); the 
> current API is setMaxAckExtensionPeriodDuration(java.time.Duration). 
> pubsubEndpoint is used only by the publisher.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to