Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17110

Camel-Kamelets: While using AWS S3 source noticed files were deleted before being consumed at all

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.11.3
    • 4.x
    • camel-aws
    • None
    • Unknown

    Description

      - route:
          from:
            uri: "kamelet:aws-s3-source"
            parameters:
              bucketNameOrArn: "camel-kafka-connector"
              accessKey: "access"
              secretKey: "secret"
              region: "eu-west-1"
          steps:
            - to: 
                uri: "kamelet:kafka-not-secured-sink"
                parameters:
                  brokers: "localhost:9092"
                  topic: "s3-source-topic"
      

      In the log, if you enabled trace you may notice something like:

      10:14:24.476 [Camel (AWS-S3-To-Kafka) thread #11 - KafkaProducer[s3-source-topic]] TRACE o.a.c.c.aws2.s3.AWS2S3Consumer - Deleted object from bucket camel-kafka-connector with key jkXzIEbaYyKMTMwGpNHL.txt...
      
      10:14:24.491 [Camel (AWS-S3-To-Kafka) thread #0 - aws2-s3://camel-kafka-connector] TRACE s.a.awssdk.auth.signer.Aws4Signer - AWS4 Canonical Request: GET
      /jkXzIEbaYyKMTMwGpNHL.txt
      
      10:14:24.582 [Camel (AWS-S3-To-Kafka) thread #0 - aws2-s3://camel-kafka-connector] DEBUG software.amazon.awssdk.request - Received error response: software.amazon.awssdk.services.s3.model.NoSuchKeyException: The specified key does not exist. 
      

      While, the get should happens before the deletions. This is happening only when using Kamelets. It looks like the exchange completed before the get operation has been done.

      Attachments

        Issue Links

          Activity

            People

              acosentino Andrea Cosentino
              acosentino Andrea Cosentino
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: