HDFS-14016. [SBN read] ObserverReadProxyProvider should enable observer read by default. Contributed by Chen Liang.
This commit is contained in:
parent
cc70e81931
commit
fc54850509
|
@ -141,6 +141,8 @@ public class ObserverReadProxyProvider<T extends ClientProtocol>
|
||||||
ObserverReadInvocationHandler.class.getClassLoader(),
|
ObserverReadInvocationHandler.class.getClassLoader(),
|
||||||
new Class<?>[] { xface }, new ObserverReadInvocationHandler());
|
new Class<?>[] { xface }, new ObserverReadInvocationHandler());
|
||||||
combinedProxy = new ProxyInfo<>(wrappedProxy, combinedInfo.toString());
|
combinedProxy = new ProxyInfo<>(wrappedProxy, combinedInfo.toString());
|
||||||
|
// TODO : make this configurable or remove this variable
|
||||||
|
this.observerReadEnabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public AlignmentContext getAlignmentContext() {
|
public AlignmentContext getAlignmentContext() {
|
||||||
|
|
Loading…
Reference in New Issue