Bug fix on lease table manager
This commit is contained in:
parent
23edc1b934
commit
2cfb411fea
1 changed files with 9 additions and 8 deletions
|
|
@ -49,16 +49,17 @@ public class LeaseTableManager {
|
||||||
if (i > 100) {
|
if (i > 100) {
|
||||||
throw new RuntimeException("Failed lease table deletion");
|
throw new RuntimeException("Failed lease table deletion");
|
||||||
}
|
}
|
||||||
try {
|
|
||||||
if (!listAllLeaseTables().contains(tableName)) {
|
List<String> leaseTableNames = listAllLeaseTables();
|
||||||
log.info("Succesfully deleted the lease table {}", tableName);
|
log.info("All lease tables name: {}. Looking for: {}", leaseTableNames, tableName);
|
||||||
return;
|
if (!listAllLeaseTables().contains(tableName)) {
|
||||||
}
|
log.info("Succesfully deleted the lease table {}", tableName);
|
||||||
} catch (Exception e) {
|
return;
|
||||||
|
} else {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(TimeUnit.SECONDS.toMillis(10));
|
Thread.sleep(TimeUnit.SECONDS.toMillis(10));
|
||||||
} catch (InterruptedException e1) { }
|
} catch (InterruptedException e1) {}
|
||||||
log.info("Lease table {} is not deleted yet, exception: ", tableName, e);
|
log.info("Lease table {} is not deleted yet, exception: ", tableName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue