Fix missing string formatting for the lock key

The lack of proper formatting here leads to unnecessary lock contention in high
concurrency setups
This commit is contained in:
R Tyler Croy 2023-11-22 21:15:50 -08:00
parent 9f0867488e
commit b3119e7b7e
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "oxbow"
version = "0.7.0"
version = "0.7.1"
edition = "2021"
keywords = ["deltalake", "parquet", "lambda", "delta"]
homepage = "https://github.com/buoyant-data/oxbow"

View File

@ -74,7 +74,7 @@ async fn func<'a>(event: LambdaEvent<SqsEvent>) -> Result<Value, Error> {
// when locking in DynamoDb.
storage_options.insert(
"DYNAMO_LOCK_PARTITION_KEY_VALUE".into(),
"{table_name}:delta".into(),
format!("{table_name}:delta"),
);
let lock_options = dynamodb_lock::DynamoDbOptions {
lease_duration: 60,