Merge 620d36559d into 8d339bdb88
This commit is contained in:
commit
e28d756ed7
1 changed files with 3 additions and 0 deletions
|
|
@ -124,6 +124,9 @@ public class LeaseManager<T extends Lease> implements ILeaseManager<T> {
|
|||
request.setProvisionedThroughput(throughput);
|
||||
|
||||
try {
|
||||
if (leaseTableExists()) {
|
||||
return false;
|
||||
}
|
||||
dynamoDBClient.createTable(request);
|
||||
} catch (ResourceInUseException e) {
|
||||
LOG.info("Table " + table + " already exists.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue