dlmarion commented on code in PR #3180:
URL: https://github.com/apache/accumulo/pull/3180#discussion_r1097416330
##########
server/base/src/test/java/org/apache/accumulo/server/fs/VolumeManagerImplTest.java:
##########
@@ -104,4 +111,88 @@ public Scope getChooserScope() {
assertThrows(RuntimeException.class, () -> vm.choose(chooserEnv,
volumes));
}
}
+
+ @Test
+ public void testConfigurationOverrides() throws Exception {
+
+ final String vol1 = "file://127.0.0.1/vol1/";
+ final String vol2 = "file://localhost/vol2/";
+ final String vol3 = "hdfs://127.0.0.1/accumulo";
+ final String vol4 = "hdfs://localhost/accumulo";
+
+ ConfigurationCopy conf = new ConfigurationCopy();
+ conf.set(Property.INSTANCE_VOLUMES, String.join(",", vol1, vol2, vol3,
vol4));
+ conf.set(Property.GENERAL_VOLUME_CHOOSER,
Property.GENERAL_VOLUME_CHOOSER.getDefaultValue());
+ conf.set(Property.GENERAL_ARBITRARY_PROP_PREFIX.getKey() + vol1 + "."
+ + HdfsClientConfigKeys.HedgedRead.THREADPOOL_SIZE_KEY, "10");
+ conf.set(Property.GENERAL_ARBITRARY_PROP_PREFIX.getKey() + vol1 + "."
Review Comment:
Added blocksize property to one volume in test.
##########
server/base/src/test/java/org/apache/accumulo/server/fs/VolumeManagerImplTest.java:
##########
@@ -104,4 +111,88 @@ public Scope getChooserScope() {
assertThrows(RuntimeException.class, () -> vm.choose(chooserEnv,
volumes));
}
}
+
+ @Test
+ public void testConfigurationOverrides() throws Exception {
+
+ final String vol1 = "file://127.0.0.1/vol1/";
+ final String vol2 = "file://localhost/vol2/";
+ final String vol3 = "hdfs://127.0.0.1/accumulo";
+ final String vol4 = "hdfs://localhost/accumulo";
+
+ ConfigurationCopy conf = new ConfigurationCopy();
+ conf.set(Property.INSTANCE_VOLUMES, String.join(",", vol1, vol2, vol3,
vol4));
+ conf.set(Property.GENERAL_VOLUME_CHOOSER,
Property.GENERAL_VOLUME_CHOOSER.getDefaultValue());
+ conf.set(Property.GENERAL_ARBITRARY_PROP_PREFIX.getKey() + vol1 + "."
+ + HdfsClientConfigKeys.HedgedRead.THREADPOOL_SIZE_KEY, "10");
+ conf.set(Property.GENERAL_ARBITRARY_PROP_PREFIX.getKey() + vol1 + "."
Review Comment:
Added blocksize property to one volume in test in e0c12c4.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]