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);
|
request.setProvisionedThroughput(throughput);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (leaseTableExists()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
dynamoDBClient.createTable(request);
|
dynamoDBClient.createTable(request);
|
||||||
} catch (ResourceInUseException e) {
|
} catch (ResourceInUseException e) {
|
||||||
LOG.info("Table " + table + " already exists.");
|
LOG.info("Table " + table + " already exists.");
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue