Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,6 @@ CachedTablets lookupTablet(ClientContext context, CachedTablet src, Text row, Te

public interface TabletServerLockChecker {
boolean isLockHeld(String tserver, String session);

void invalidateCache(String server);
}

private class LockCheckerSession {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

import java.util.Set;

import org.apache.accumulo.core.Constants;
import org.apache.accumulo.core.clientImpl.ClientTabletCacheImpl.TabletServerLockChecker;
import org.apache.accumulo.core.lock.ServiceLock;
import org.apache.accumulo.core.lock.ServiceLockPaths;
Expand Down Expand Up @@ -65,10 +64,4 @@ public boolean isLockHeld(String server, String session) {
return false;
}

@Override
public void invalidateCache(String tserver) {
// The path for the tserver contains a resource group. The resource group is unknown, so can not
// construct a prefix. Therefore clear any path that contains the tserver.
zc.clear(path -> path.startsWith(Constants.ZTSERVERS) && path.contains(tserver));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -556,8 +556,6 @@ public boolean isLockHeld(String tserver, String session) {
return true;
}

@Override
public void invalidateCache(String server) {}
}

static class TestRootClientTabletCache extends RootClientTabletCache {
Expand Down Expand Up @@ -1564,9 +1562,6 @@ public void testLostLock() throws Exception {
public boolean isLockHeld(String tserver, String session) {
return activeLocks.contains(tserver + ":" + session);
}

@Override
public void invalidateCache(String server) {}
});

KeyExtent ke1 = createNewKeyExtent("foo", null, null);
Expand Down

This file was deleted.