shenshengli commented on a change in pull request #2816:
URL: https://github.com/apache/hbase/pull/2816#discussion_r553053984
##########
File path:
hbase-common/src/test/java/org/apache/hadoop/hbase/TestHBaseConfiguration.java
##########
@@ -115,6 +115,19 @@ public void testSecurityConfCaseInsensitive() {
conf.set("hbase.security.authentication", "KERBeros");
Assert.assertTrue(User.isHBaseSecurityEnabled(conf));
}
+
+ @Test
+ public void testGetConfigOfShortcircuitRead() throws Exception {
+ Configuration conf = HBaseConfiguration.create();
+ Configuration.addDefaultResource("hdfs-default.xml");
+ assertEquals("hdfs-default.xml",
+ conf.getPropertySources("dfs.client.read.shortcircuit")[0]);
+ assertEquals("false", conf.get("dfs.client.read.shortcircuit"));
+ Configuration.addDefaultResource("hdfs-site.xml");
Review comment:
OK, I just want to simulate setting this value explicitly.Changing the
name would work, too.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]