Skip to content

DMS: Serialization flaw: DDL/DML events are processed out of order #101

@amotl

Description

@amotl

Problem

We are using an AWS Lambda for processing DMS events from a Kinesis stream, and observed out-of-order processing behaviour. In our case, there seems to be a race condition at the beginning of the load where INSERT is attempted before CREATE TABLE.

Image

Thoughts

@hammerhead said:

This makes me think if we have any issue with the serialization of CDC events. For plain INSERTs, the order in which we receive those CDC events from Kinesis and execute them doesn’t matter. But as soon as we have let’s say two UPDATE statements changing the same record, we need to be sure to execute them in the right order (latest should win). Not sure yet how Lambda behaves in terms of concurrency and if Kinesis maintains any order of events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions