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: ACCUMULO-4229 BatchWriter Locator cache out...
Date Thu, 28 Apr 2016 15:00:57 GMT
Github user keith-turner commented on the pull request:

    https://github.com/apache/accumulo/pull/96#issuecomment-215454359
  
    An alternative solution to introducing `SyncingTabletLocator` could be to change the implementation
of  clearLocators to the following.  This clears all of the caches while still maintaining
the references to in uses locators.
    
    ```java
     public static synchronized void clearLocators() {
        for(TabletLocator tl : locators.values()){
          tl.invalidateCache();
        }
     }
    ``` 
    
    If worried about empty tablet location caches being left around in the `locators` map,
that could possible be changed to a weak hash map.


---
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