|
@@ -7475,7 +7475,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- void finalizeRollingUpgrade() throws IOException {
|
|
|
+ RollingUpgradeInfo finalizeRollingUpgrade() throws IOException {
|
|
|
checkSuperuserPrivilege();
|
|
|
checkOperation(OperationCategory.WRITE);
|
|
|
writeLock();
|
|
@@ -7483,7 +7483,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
try {
|
|
|
checkOperation(OperationCategory.WRITE);
|
|
|
if (!isRollingUpgrade()) {
|
|
|
- return;
|
|
|
+ return null;
|
|
|
}
|
|
|
checkNameNodeSafeMode("Failed to finalize rolling upgrade");
|
|
|
|
|
@@ -7508,7 +7508,7 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
|
|
if (auditLog.isInfoEnabled() && isExternalInvocation()) {
|
|
|
logAuditEvent(true, "finalizeRollingUpgrade", null, null, null);
|
|
|
}
|
|
|
- return;
|
|
|
+ return returnInfo;
|
|
|
}
|
|
|
|
|
|
RollingUpgradeInfo finalizeRollingUpgradeInternal(long finalizeTime)
|