Github user mjwall commented on a diff in the pull request:
https://github.com/apache/accumulo/pull/256#discussion_r116025321
--- Diff:
core/src/main/java/org/apache/accumulo/core/conf/ConfigurationCopy.java ---
@@ -95,4 +95,16 @@ public void set(String key, String value) {
copy.put(key, value);
}
+ /**
+ * Sets a property in this configuration if it is not already defined.
+ *
+ * @param key
+ * key of property to set
+ * @param value
+ * property value
+ */
+ public void setIfAbsent(String key, String value) {
--- End diff --
This seems to only be used in BlockCacheConfigurationHelper, whose
setIfAbsent method is only used in TestLRUBlockCache. Why would you want this
functionality?
Maybe it could log at debug if the key was present and therefore not set.
Seems like an opportunity for confusion.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---