HDFS-3756. DelegationTokenFetcher creates 2 HTTP connections, the second one not properly configured. (tucu)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1368733 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3eb0cb27e8
commit
42d071ab6f
|
@ -551,6 +551,9 @@ Branch-2 ( Unreleased changes )
|
||||||
HDFS-3738. TestDFSClientRetries#testFailuresArePerOperation sets incorrect
|
HDFS-3738. TestDFSClientRetries#testFailuresArePerOperation sets incorrect
|
||||||
timeout config. (atm)
|
timeout config. (atm)
|
||||||
|
|
||||||
|
HDFS-3756. DelegationTokenFetcher creates 2 HTTP connections, the second
|
||||||
|
one not properly configured. (tucu)
|
||||||
|
|
||||||
BREAKDOWN OF HDFS-3042 SUBTASKS
|
BREAKDOWN OF HDFS-3042 SUBTASKS
|
||||||
|
|
||||||
HDFS-2185. HDFS portion of ZK-based FailoverController (todd)
|
HDFS-2185. HDFS portion of ZK-based FailoverController (todd)
|
||||||
|
|
|
@ -259,7 +259,6 @@ public class DelegationTokenFetcher {
|
||||||
try {
|
try {
|
||||||
URL url = new URL(buf.toString());
|
URL url = new URL(buf.toString());
|
||||||
connection = (HttpURLConnection) SecurityUtil.openSecureHttpConnection(url);
|
connection = (HttpURLConnection) SecurityUtil.openSecureHttpConnection(url);
|
||||||
connection = (HttpURLConnection)URLUtils.openConnection(url);
|
|
||||||
if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) {
|
if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) {
|
||||||
throw new IOException("Error renewing token: " +
|
throw new IOException("Error renewing token: " +
|
||||||
connection.getResponseMessage());
|
connection.getResponseMessage());
|
||||||
|
|
Loading…
Reference in New Issue