accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From keith-turner <...@git.apache.org>
Subject [GitHub] accumulo pull request #204: ACCUMULO-4574 Modified TableOperations online to...
Date Mon, 30 Jan 2017 14:49:46 GMT
Github user keith-turner commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/204#discussion_r98455152
  
    --- Diff: core/src/main/java/org/apache/accumulo/core/client/impl/Tables.java ---
    @@ -149,6 +149,28 @@ public static void clearCache(Instance instance) {
         getZooCache(instance).clear(ZooUtil.getRoot(instance) + Constants.ZNAMESPACES);
       }
     
    +  /**
    +   * Clears the zoo cache from instance/root/{PATH}
    +   *
    +   * @param instance
    +   *          The Accumulo Instance
    +   * @param zooPath
    +   *          A zookeeper path
    +   */
    +  public static void clearCacheByPath(Instance instance, final String zooPath) {
    +
    +    String thePath;
    +
    +    if (zooPath.startsWith("/")) {
    +      thePath = zooPath;
    +    } else {
    +      thePath = "/" + zooPath;
    +    }
    +
    +    getZooCache(instance).clear(ZooUtil.getRoot(instance) + thePath);
    --- End diff --
    
    Do you know if this zoocache method handles path normalization?  For example will is treat
`/a/b/c/` and `/a//b/c/` the same?


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message