From 7aa3399cc5d8879dee16a1df39faeb66f6db448b Mon Sep 17 00:00:00 2001 From: Xiaoyu Yao Date: Sat, 25 Apr 2015 22:24:38 -0700 Subject: [PATCH] HDFS-8206. Fix the typos in hadoop-hdfs-httpfs. (Brahma Reddy Battula via xyao) --- .../org/apache/hadoop/fs/http/client/HttpFSFileSystem.java | 6 +++--- .../hadoop/fs/http/server/CheckUploadContentTypeFilter.java | 4 ++-- .../java/org/apache/hadoop/fs/http/server/HttpFSServer.java | 2 +- .../apache/hadoop/lib/servlet/FileSystemReleaseFilter.java | 4 ++-- .../java/org/apache/hadoop/lib/servlet/HostnameFilter.java | 4 ++-- .../main/java/org/apache/hadoop/lib/servlet/MDCFilter.java | 4 ++-- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ 7 files changed, 14 insertions(+), 12 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java index cc2912cac91..df2b279c733 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/client/HttpFSFileSystem.java @@ -239,7 +239,7 @@ public class HttpFSFileSystem extends FileSystem * @return a HttpURLConnection for the HttpFSServer server, * authenticated and ready to use for the specified path and file system operation. * - * @throws IOException thrown if an IO error occurrs. + * @throws IOException thrown if an IO error occurs. */ private HttpURLConnection getConnection(final String method, Map params, Path path, boolean makeQualified) @@ -264,7 +264,7 @@ public class HttpFSFileSystem extends FileSystem * HttpFSServer server, authenticated and ready to use for the * specified path and file system operation. * - * @throws IOException thrown if an IO error occurrs. + * @throws IOException thrown if an IO error occurs. */ private HttpURLConnection getConnection(final String method, Map params, Map> multiValuedParams, @@ -302,7 +302,7 @@ public class HttpFSFileSystem extends FileSystem * @return a HttpURLConnection for the HttpFSServer server, authenticated and ready to use for * the specified path and file system operation. * - * @throws IOException thrown if an IO error occurrs. + * @throws IOException thrown if an IO error occurs. */ private HttpURLConnection getConnection(URL url, String method) throws IOException { try { diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/CheckUploadContentTypeFilter.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/CheckUploadContentTypeFilter.java index 81b0b7a2b78..e96bfa1378b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/CheckUploadContentTypeFilter.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/CheckUploadContentTypeFilter.java @@ -70,8 +70,8 @@ public class CheckUploadContentTypeFilter implements Filter { * @param response servlet response. * @param chain filter chain. * - * @throws IOException thrown if an IO error occurrs. - * @throws ServletException thrown if a servet error occurrs. + * @throws IOException thrown if an IO error occurs. + * @throws ServletException thrown if a servlet error occurs. */ @Override public void doFilter(ServletRequest request, ServletResponse response, diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSServer.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSServer.java index 1f903ba1546..b7b63fabdc4 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSServer.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSServer.java @@ -104,7 +104,7 @@ public class HttpFSServer { * * @return FileSystemExecutor response * - * @throws IOException thrown if an IO error occurrs. + * @throws IOException thrown if an IO error occurs. * @throws FileSystemAccessException thrown if a FileSystemAccess releated error occurred. Thrown * exceptions are handled by {@link HttpFSExceptionProvider}. */ diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/FileSystemReleaseFilter.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/FileSystemReleaseFilter.java index cf73979f647..ec559f9125d 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/FileSystemReleaseFilter.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/FileSystemReleaseFilter.java @@ -64,8 +64,8 @@ public abstract class FileSystemReleaseFilter implements Filter { * @param servletResponse servlet response. * @param filterChain filter chain. * - * @throws IOException thrown if an IO error occurrs. - * @throws ServletException thrown if a servet error occurrs. + * @throws IOException thrown if an IO error occurs. + * @throws ServletException thrown if a servlet error occurs. */ @Override public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/HostnameFilter.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/HostnameFilter.java index 64f4926f5af..ed116e6bb07 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/HostnameFilter.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/HostnameFilter.java @@ -63,8 +63,8 @@ public class HostnameFilter implements Filter { * @param response servlet response. * @param chain filter chain. * - * @throws IOException thrown if an IO error occurrs. - * @throws ServletException thrown if a servet error occurrs. + * @throws IOException thrown if an IO error occurs. + * @throws ServletException thrown if a servlet error occurs. */ @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) diff --git a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/MDCFilter.java b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/MDCFilter.java index 156cf64ab00..0f34652d18c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/MDCFilter.java +++ b/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/lib/servlet/MDCFilter.java @@ -66,8 +66,8 @@ public class MDCFilter implements Filter { * @param response servlet response. * @param chain filter chain. * - * @throws IOException thrown if an IO error occurrs. - * @throws ServletException thrown if a servet error occurrs. + * @throws IOException thrown if an IO error occurs. + * @throws ServletException thrown if a servlet error occurs. */ @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index d0e4ab90ed2..baa8d3ca387 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -245,6 +245,8 @@ Release 2.8.0 - UNRELEASED HDFS-8247. TestDiskspaceQuotaUpdate#testAppendOverTypeQuota is failing. (Xiaoyu Yao via cnauroth) + HDFS-8206. Fix the typos in hadoop-hdfs-httpfs. (Brahma Reddy Battula via xyao) + Release 2.7.1 - UNRELEASED INCOMPATIBLE CHANGES