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 [email protected] or file a JIRA ticket
with INFRA.
---