HDFS-14016. [SBN read] ObserverReadProxyProvider should enable observer read by default. Contributed by Chen Liang.

This commit is contained in:
Chao Sun 2018-10-31 11:22:02 -07:00 committed by Chen Liang
parent cc70e81931
commit fc54850509
1 changed files with 2 additions and 0 deletions

View File

@ -141,6 +141,8 @@ public class ObserverReadProxyProvider<T extends ClientProtocol>
ObserverReadInvocationHandler.class.getClassLoader(),
new Class<?>[] { xface }, new ObserverReadInvocationHandler());
combinedProxy = new ProxyInfo<>(wrappedProxy, combinedInfo.toString());
// TODO : make this configurable or remove this variable
this.observerReadEnabled = true;
}
public AlignmentContext getAlignmentContext() {