sumitagrawl commented on code in PR #10186:
URL: https://github.com/apache/ozone/pull/10186#discussion_r3242023499
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/scm/ReconStorageContainerManagerFacade.java:
##########
@@ -607,19 +921,15 @@ private void initializeNewRdbStore(File dbFile) throws
IOException {
ReconSCMDBDefinition.CONTAINERS.getTable(newStore));
nodeManager.reinitialize(
ReconSCMDBDefinition.NODES.getTable(newStore));
- IOUtils.close(LOG, dbStore);
- deleteOldSCMDB();
dbStore = newStore;
- File newDb = new File(dbFile.getParent() +
- OZONE_URI_DELIMITER + ReconSCMDBDefinition.RECON_SCM_DB_NAME);
- boolean success = dbFile.renameTo(newDb);
Review Comment:
Since rename is done earlier, but now its removed. Do this have any impact ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]