This is an automated email from the ASF dual-hosted git repository.
sunchao pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-3.3 by this push:
new a73efb2d554 HDFS-16687. RouterFsckServlet replicates code from
DfsServlet base class (#4681) (#4790)
a73efb2d554 is described below
commit a73efb2d5547a0b9abc25ec7913d2f2313969120
Author: Steve Vaughan <[email protected]>
AuthorDate: Mon Aug 22 23:26:03 2022 -0400
HDFS-16687. RouterFsckServlet replicates code from DfsServlet base class
(#4681) (#4790)
---
.../hdfs/server/federation/router/RouterFsckServlet.java | 16 ++--------------
1 file changed, 2 insertions(+), 14 deletions(-)
diff --git
a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterFsckServlet.java
b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterFsckServlet.java
index 41216fce702..a439e5c0ce8 100644
---
a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterFsckServlet.java
+++
b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterFsckServlet.java
@@ -25,20 +25,19 @@ import java.security.PrivilegedExceptionAction;
import java.util.Map;
import javax.servlet.ServletContext;
-import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.hadoop.classification.InterfaceAudience;
import org.apache.hadoop.conf.Configuration;
-import org.apache.hadoop.hdfs.server.common.JspHelper;
+import org.apache.hadoop.hdfs.server.namenode.DfsServlet;
import org.apache.hadoop.security.UserGroupInformation;
/**
* This class is used in Namesystem's web server to do fsck on namenode.
*/
@InterfaceAudience.Private
-public class RouterFsckServlet extends HttpServlet {
+public class RouterFsckServlet extends DfsServlet {
/** for java.io.Serializable. */
private static final long serialVersionUID = 1L;
@@ -67,15 +66,4 @@ public class RouterFsckServlet extends HttpServlet {
}
}
- /**
- * Copy from {@link org.apache.hadoop.hdfs.server.namenode.DfsServlet}.
- * @param request Http request from the user
- * @param conf configuration
- * @return ugi of the requested user
- * @throws IOException failed to get ugi
- */
- protected UserGroupInformation getUGI(HttpServletRequest request,
- Configuration conf) throws IOException {
- return JspHelper.getUGI(getServletContext(), request, conf);
- }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]