You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by GitBox <gi...@apache.org> on 2020/12/01 20:01:25 UTC

[GitHub] [accumulo] ctubbsii commented on a change in pull request #1819: Make zk watch offenders call getWithoutWatch(). Fixes #1809

ctubbsii commented on a change in pull request #1819:
URL: https://github.com/apache/accumulo/pull/1819#discussion_r533670396



##########
File path: server/base/src/main/java/org/apache/accumulo/server/conf/ZooCachePropertyAccessor.java
##########
@@ -103,6 +103,20 @@ String get(Property property, String path, AccumuloConfiguration parent) {
     String key = property.getKey();
     String value = get(path + "/" + key);
 
+    return checkValue(property, parent, key, value);
+  }
+
+  private String get(String path) {
+    byte[] v = propCache.get(path);
+    if (v != null) {
+      return new String(v, UTF_8);
+    } else {
+      return null;
+    }

Review comment:
       ```suggestion
       return v == null ? null : new String(v, UTF_8);
   ```




----------------------------------------------------------------
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:
users@infra.apache.org