Skip to content

Commit

Permalink
Fix missing string formatting for the lock key
Browse files Browse the repository at this point in the history
The lack of proper formatting here leads to unnecessary lock contention in high
concurrency setups
  • Loading branch information
rtyler committed Nov 23, 2023
1 parent 9f08674 commit b3119e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/bin/lambda.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b3119e7

Please sign in to comment.