Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-10706

DynamoDBIO fail to write to the same key in short consecution

Details

    • Bug
    • Status: Resolved
    • P2
    • Resolution: Fixed
    • 2.23.0
    • 2.27.0
    • io-java-aws
    • None

    Description

      Internally, DynamoDBIO.Write uses the batchWriteItem method from the AWS SDK to sink items. However, there is a limitation in the AWS SDK that a call to batchWriteItem cannot contain duplicate keys.

      Currently DynamoDBIO.Write performs no key deduplication before flushing a batch, which could cause ValidationException: Provided list of item keys contains duplicates, if consecutive updates to a single key is within the batch size (currently hardcoded to be 25). 

      To fix this bug, the batch of write requests need to be deduplicated before being sent to batchRequest.addRequestItemsEntry

      Attachments

        Issue Links

          Activity

            People

              dennisyung Dennis Yung
              dennisyung Dennis Yung
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h 40m
                  6h 40m