Skip to content

Commit

Permalink
Made ZC.clear() private, fixed path issue in TableZooHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion committed Jan 14, 2025
1 parent f88e363 commit 8246fd7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ protected void copyStats(ZcStat userStat, ZcStat cachedStat) {
/**
* Clears this cache.
*/
public void clear() {
private void clear() {
Preconditions.checkState(!closed);
nodeCache.clear();
updateCount.incrementAndGet();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public TableState getTableState(TableId tableId, boolean clearCachedState) {
String statePath = context.getZooKeeperRoot() + Constants.ZTABLES + "/" + tableId.canonical()
+ Constants.ZTABLE_STATE;
if (clearCachedState) {
context.getZooCache().clear(context.getZooKeeperRoot() + statePath);
context.getZooCache().clear(statePath);
instanceToMapCache.invalidateAll();
}
ZooCache zc = context.getZooCache();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ public void alterConfig() throws Exception {
try (AccumuloClient client = Accumulo.newClient().from(getClientProps()).build();
ClientContext context = (ClientContext) client) {
ZooCache zcache = context.getZooCache();
zcache.clear();
var path = context.getServerPaths().createGarbageCollectorPath();
Optional<ServiceLockData> gcLockData;
do {
Expand Down

0 comments on commit 8246fd7

Please sign in to comment.