This commit is contained in:
Brian M. Carr 2017-04-12 20:22:36 +00:00 committed by GitHub
commit e28d756ed7

View file

@ -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.");