svn merge -c 1170996 from trunk for HDFS-2331.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1189410 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Tsz-wo Sze 2011-10-26 19:45:12 +00:00
parent eda4dbbb76
commit 20a31036c8
2 changed files with 4 additions and 1 deletions

View File

@ -1058,6 +1058,9 @@ Release 0.23.0 - Unreleased
HDFS-2467. HftpFileSystem uses incorrect compare for finding delegation
tokens. (omalley)
HDFS-2331. Fix WebHdfsFileSystem compilation problems for a bug in JDK
version < 1.6.0_26. (Abhijit Suresh Shingate via szetszwo)
BREAKDOWN OF HDFS-1073 SUBTASKS
HDFS-1521. Persist transaction ID on disk between NN restarts.

View File

@ -206,7 +206,7 @@ public class WebHdfsFileSystem extends HftpFileSystem {
final HttpURLConnection conn = httpConnect(op, fspath, parameters);
validateResponse(op, conn);
try {
return jsonParse(conn.getInputStream());
return WebHdfsFileSystem.<T>jsonParse(conn.getInputStream());
} finally {
conn.disconnect();
}