Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[camel-aws-ddb-streams-source-kafka-connector] Gets stuck with error java.util.ConcurrentModificationException in logs #1696

Open
aonamrata opened this issue Jan 22, 2025 · 1 comment

Comments

@aonamrata
Copy link

aonamrata commented Jan 22, 2025

Hi,

I am using camel-aws-ddb-streams-source-kafka-source-connector V4.8.0 with sts-2.30.2.jar for credentials.
We were having issues where the connector will show status "Running" but would be stuck and did not process any new streams messages. we have to explicitly restart the connector to start processing again. We turned on DEBUG logs for the connector and this is what we found

Image

The connector does not die, it's still running. Also there are some new logs after this WARN Failed polling endpoint: DdbStreamEndpoint java.util.ConcurrentModificationException that shows 200 status in logs but not really getting new messages.

[2025-01-22 03:03:30,568] DEBUG Received successful response: 200, Request ID: 6VJEESJK6TF9S2LKBDOF9UNVDBVV4KQNSO5AEMVJF66Q9ASUAAJG, Extended Request ID: not available (software.amazon.awssdk.requestId)

This error normally occurs ~40-50 minutes after the connector is restarted. Nothing gets processed after this time even though the logs don't have any errors or exceptions. I am not 100% sure if it is this error that is causing it but this is the only error/warn in the logs.

This is my connector configuration:

{
  "connector.class": "org.apache.camel.kafkaconnector.awsddbstreamssource.CamelAwsddbstreamssourceSourceConnector",
  "transforms.CamelTypeConverterTransformer.type": "org.apache.camel.kafkaconnector.transforms.CamelTypeConverterTransform$Value",
  "transforms.CamelTypeConverterTransformer.target.type": "java.lang.String",
  "camel.kamelet.aws-ddb-streams-source.table": "qa_pp_identity",
  "camel.kamelet.aws-ddb-streams-source.region": "us-east-1",
  "kafka.bootstrap.servers": "b-1......:9094",
  "topics": "cdc.ppIdentity",
  "transforms": "CamelTypeConverterTransformer",
  "name": "pp_identity_ddbs_src",
  "camel.kamelet.aws-ddb-streams-source.streamIteratorType": "FROM_START",
  "camel.kamelet.aws-ddb-streams-source.useDefaultCredentialsProvider": "true"
}
@oscerd
Copy link
Contributor

oscerd commented Jan 31, 2025

I'll try to reproduce in plain camel with the Kamelet and let you know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants