Skip to content

Commit

Permalink
AWS: Close underlying scheduler for DynamoDbLockManager (apache#10132)
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas committed Apr 15, 2024
1 parent e6a1a45 commit d067677
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,10 +312,12 @@ private static Map<String, AttributeValue> toLockIdValues(String entityId, Strin
}

@Override
public void close() {
public void close() throws Exception {
dynamo.close();
heartbeats.values().forEach(DynamoDbHeartbeat::cancel);
heartbeats.clear();

super.close();
}

/**
Expand Down

0 comments on commit d067677

Please sign in to comment.