Ejemplo n.º 1
0
 /**
  * Throw appropriate exception during upgrade from 203, when editlog loading could fail due to
  * opcode conflicts.
  */
 private void check203UpgradeFailure(int logVersion, IOException ex) throws IOException {
   // 0.20.203 version version has conflicting opcodes with the later releases.
   // The editlog must be emptied by restarting the namenode, before proceeding
   // with the upgrade.
   if (Storage.is203LayoutVersion(logVersion) && logVersion != FSConstants.LAYOUT_VERSION) {
     String msg =
         "During upgrade failed to load the editlog version "
             + logVersion
             + " from release 0.20.203. Please go back to the old "
             + " release and restart the namenode. This empties the editlog "
             + " and saves the namespace. Resume the upgrade after this step.";
     throw new IOException(msg, ex);
   } else {
     throw ex;
   }
 }
 public String getRegistrationID() {
   return Storage.getRegistrationID(storageInfo);
 }
 // Expose visibility for VolumeBuilder#commit().
 public void addStorageDir(StorageDirectory sd) {
   super.addStorageDir(sd);
 }