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

View File

@ -141,6 +141,8 @@ public ObserverReadProxyProvider(
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() {