private void doUpgrade(final StorageDirectory sd, final NamespaceInfo nsInfo, final File prevDir, final File tmpDir, final File bbwDir, final File toDir, final int oldLV, Configuration conf) throws IOException { // 3.2. Link block files from <SD>/previous.tmp to <SD>/current linkAllBlocks(tmpDir, bbwDir, toDir, oldLV, conf); // 4. Write version file under <SD>/current clusterID = nsInfo.getClusterID(); upgradeProperties(sd, conf); // 5. Rename <SD>/previous.tmp to <SD>/previous rename(tmpDir, prevDir); LOG.info("Upgrade of {} is complete", sd.getRoot()); }
upgradeProperties(sd, conf); } else { doUpgradePreFederation(sd, nsInfo, callables, conf);
private void doUpgrade(final StorageDirectory sd, final NamespaceInfo nsInfo, final File prevDir, final File tmpDir, final File bbwDir, final File toDir, final int oldLV, Configuration conf) throws IOException { // 3.2. Link block files from <SD>/previous.tmp to <SD>/current linkAllBlocks(tmpDir, bbwDir, toDir, oldLV, conf); // 4. Write version file under <SD>/current clusterID = nsInfo.getClusterID(); upgradeProperties(sd); // 5. Rename <SD>/previous.tmp to <SD>/previous rename(tmpDir, prevDir); LOG.info("Upgrade of " + sd.getRoot()+ " is complete"); }
private void doUpgrade(final StorageDirectory sd, final NamespaceInfo nsInfo, final File prevDir, final File tmpDir, final File bbwDir, final File toDir, final int oldLV, Configuration conf) throws IOException { // 3.2. Link block files from <SD>/previous.tmp to <SD>/current linkAllBlocks(tmpDir, bbwDir, toDir, oldLV, conf); // 4. Write version file under <SD>/current clusterID = nsInfo.getClusterID(); upgradeProperties(sd); // 5. Rename <SD>/previous.tmp to <SD>/previous rename(tmpDir, prevDir); LOG.info("Upgrade of " + sd.getRoot()+ " is complete"); }
upgradeProperties(sd); } else { doUpgradePreFederation(sd, nsInfo, callables, conf);
upgradeProperties(sd); } else { doUpgradePreFederation(sd, nsInfo, callables, conf);