-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
DynamoDB: Upgrade DDBLocal to v2 #11064
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
Conversation
98ea358
to
eef66a0
Compare
cacf444
to
061d2f7
Compare
LocalStack Community integration with Pro 2 files ± 0 2 suites ±0 26m 14s ⏱️ - 1h 17m 7s Results for commit 8faf393. ± Comparison against base commit 56e0b77. This pull request removes 2647 tests.
♻️ This comment has been updated with latest results. |
795e4f6
to
3219d6d
Compare
be62112
to
94883b6
Compare
94883b6
to
44fe407
Compare
207477f
to
a60dc53
Compare
DDB Local v2.1.0 has removed this dependency
44fe407
to
1b194ed
Compare
It can not handle non-default versions
4653789
to
0e6117b
Compare
if is_mac_os() and get_arch() == "arm64": | ||
target_path = os.path.join(ddb_local_lib_dir, "libsqlite4java-osx-aarch64.dylib") | ||
if not file_exists_not_empty(target_path): | ||
download(LIBSQLITE_AARCH64_URL, target_path) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These libraries are bundled with DDBv2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good! Thanks for taking care of the migration.
Do you have any idea if upgrading to V2 immediately breaks pods/state compatibility with the previous version?
@giograno I'm not sure, I did not test this aspect. Would you suggest merging this closer to the v4 release than now? |
@viren-nadkarni I just gave it a try by creating a pod with v1 and restoring it with v2 and it seems to work fine. |
Background
AWS released DDB Local v2 in July 2023.
https://aws.amazon.com/about-aws/whats-new/2023/07/dynamodb-local-version-2-0/
LocalStack currently uses DDB Local v1. The EOL for DDB Local v1 which is January 2025.
Among others, DDB Local v2 supports:
ReturnValuesOnConditionCheckFailure
parameterReturnValuesOnConditionCheckFailure
,BatchExecuteStatement
, andExecuteTransactionRequest
Changes
This PR upgrades DDB Local to v2.
To do
/Table/DeletionProtectionEnabled
)Related
Supersedes #9909
Depends on #11139, #11462
Closes #11038