You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "aonamrata (via GitHub)" <gi...@apache.org> on 2024/02/20 15:08:05 UTC
[I] [issue] [salesforce source] sending replayId to re-run old records [camel-kafka-connector]
aonamrata opened a new issue, #1598:
URL: https://github.com/apache/camel-kafka-connector/issues/1598
Hi,
I am testing salesforce source connector to see if it can re-run old messages incase there is some issue or api limitation error. I am on connector version `3.18.2` with config like
```
"tasks.max": "1",
"connector.class": "org.apache.camel.kafkaconnector.salesforcesource.CamelSalesforcesourceSourceConnector",
"topics": "nam_sf_source_test",
"camel.main.streamCachingEnabled": false,
"camel.source.path.topicName": "/data/Fan__ChangeEvent",
"camel.component.salesforce.sObjectQuery": "select Id,Email__c,First_Name__c,LastModifiedDate from Fan__c where IsDeleted=false",
"camel.component.salesforce.updateTopic": true,
"camel.component.salesforce.rawPayload": true,
"camel.component.salesforce.defaultReplayId": "4497",
"camel.source.endpoint.defaultReplayId": "4497",
"camel.source.endpoint.replayId": "4497",
"camel.kamelet.salesforce-source.replayId": "4497",
"camel.kamelet.salesforce-source.defaultReplayId": "4497",
```
I was not sure which naming will work so i added all of those that i could find in different documentation. But none of these work. The logs always show `Replay from -1`
**As a workaround** i found that i can send it as a part of topic like
```
SF_TOPIC: "/data/Fan__ChangeEvent?replayId=4497&"
```
and that seem to do the trick.
**Question:**
Do you know if the next release will have this fixed? What is the current config name? How does the connector handle API limit exceeded scenario?
--
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: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [issue] [salesforce source] sending replayId to re-run old records [camel-kafka-connector]
Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd commented on issue #1598:
URL: https://github.com/apache/camel-kafka-connector/issues/1598#issuecomment-1954689692
Both of the options are valid:
https://camel.apache.org/components/4.0.x/salesforce-component.html#_endpoint_query_option_replayId
https://camel.apache.org/components/4.0.x/salesforce-component.html#_endpoint_query_option_defaultReplayId
The original Kamelet, used to build the connector, doesn't expose the replayId option: https://github.com/apache/camel-kamelets/blob/main/kamelets/salesforce-source.kamelet.yaml
We can add the option, but just for 4.4.1 release, since 4.4.0 is already on vote. My suggestion for the API limits is to throttle or to check the limits ahead of time.
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [issue] [salesforce source] sending replayId to re-run old records [camel-kafka-connector]
Posted by "oscerd (via GitHub) via commits" <co...@camel.apache.org>.
oscerd closed issue #1598: [issue] [salesforce source] sending replayId to re-run old records
URL: https://github.com/apache/camel-kafka-connector/issues/1598
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [issue] [salesforce source] sending replayId to re-run old records [camel-kafka-connector]
Posted by "oscerd (via GitHub) via commits" <co...@camel.apache.org>.
oscerd commented on issue #1598:
URL: https://github.com/apache/camel-kafka-connector/issues/1598#issuecomment-6632158258
Closing this as fixed: since 4.8.0 the salesforce-source Kamelet exposes the replay id (apache/camel-kamelets#2184), so on 4.22.x you can set `camel.kamelet.salesforce-source.replayId` instead of appending `?replayId=...&` to the topic name. Note that the configured value is applied every time the task starts; resuming from the last event already written to Kafka is a separate, more general feature tracked in #17. All options are listed at https://camel.apache.org/camel-kafka-connector/next/reference/connectors/camel-salesforce-source-kafka-source-connector.html. If replay does not behave as expected on 4.22.x, please open a new issue with the connector version, your configuration (secrets redacted) and the logs.
---
_Claude Code on behalf of Andrea Cosentino_
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org