This repository has been archived by the owner on Jul 17, 2019. It is now read-only.
forked from mapbox/dynamodb-replicator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extend tests to use item with a range key.
This exposes a bug (previously filed as mapbox#90) which occurs when items with a range key are read from the DDB event stream, an md5 hash of the key is computed and the item written to S3. The issue is that the DDB event stream handler does not (and should not) do a 'describe_table' to know which key is the HASH and which is the RANGE and therefor simply generates the md5 hash of the item keys in whatever order they happen to appear in the stream event. The s3-backfill util does do a 'describe_table' and does order the keys by declaration order which DDB requires to be HASH first, RANGE second. The different ordering of the item keys will produce a distinct md5 hash value and different S3 path/keys will result in some items appearing twice in S3 effectively corrupting the incremental backups since two valid versions will be present at the same time.
- Loading branch information
Showing
9 changed files
with
144 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.