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 Konstantin V Shvachko
parent 8c49135078
commit 1a9ba9616a
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() {