HDFS-13851. Remove AlignmentContext from AbstractNNFailoverProxyProvider. Contributed by Konstantin Shvachko.
This commit is contained in:
parent
66ec3a67e8
commit
25d8e39b5c
@ -34,7 +34,6 @@
|
||||
import org.apache.hadoop.hdfs.HAUtilClient;
|
||||
import org.apache.hadoop.hdfs.client.HdfsClientConfigKeys;
|
||||
import org.apache.hadoop.io.retry.FailoverProxyProvider;
|
||||
import org.apache.hadoop.ipc.AlignmentContext;
|
||||
import org.apache.hadoop.security.UserGroupInformation;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
@ -107,11 +106,7 @@ public synchronized AtomicBoolean getFallbackToSimpleAuth() {
|
||||
return fallbackToSimpleAuth;
|
||||
}
|
||||
|
||||
public synchronized AlignmentContext getAlignmentContext() {
|
||||
return null; // by default the context is null
|
||||
}
|
||||
|
||||
/**
|
||||
/**
|
||||
* ProxyInfo to a NameNode. Includes its address.
|
||||
*/
|
||||
public static class NNProxyInfo<T> extends ProxyInfo<T> {
|
||||
|
@ -113,7 +113,6 @@ ap.address, conf, ugi, false, getFallbackToSimpleAuth(),
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public synchronized AlignmentContext getAlignmentContext() {
|
||||
return alignmentContext;
|
||||
}
|
||||
|
@ -94,11 +94,6 @@ public AlignmentContextProxyProvider(
|
||||
|
||||
AC_LIST.add(alignmentContext);
|
||||
}
|
||||
|
||||
@Override // AbstractNNFailoverProxyProvider
|
||||
public synchronized ClientGSIContext getAlignmentContext() {
|
||||
return this.alignmentContext;
|
||||
}
|
||||
}
|
||||
|
||||
static class SpyConfiguredContextProxyProvider<T>
|
||||
|
Loading…
Reference in New Issue
Block a user