Skip to content

Commit

Permalink
tests: Fix: Initialize ACL fixup registry
Browse files Browse the repository at this point in the history
  • Loading branch information
ztzg committed Oct 10, 2024
1 parent 7e27f10 commit 2582180
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
import org.apache.zookeeper.server.ServerCnxnFactory;
import org.apache.zookeeper.server.ZKDatabase;
import org.apache.zookeeper.server.ZooKeeperServer;
import org.apache.zookeeper.server.acl.ACLs;
import org.apache.zookeeper.server.persistence.FilePadding;
import org.apache.zookeeper.server.quorum.QuorumPeer;
import org.apache.zookeeper.server.util.OSMXBean;
Expand All @@ -80,6 +81,16 @@ public abstract class ClientBase extends ZKTestCase {

long initialFdCount;

static {
try {
// TODO(ddiederen): Make it more dynamic and resettable,
// as for ...auth.ProviderRegistry.
ACLs.initialize();
} catch (ACLs.InitializationException e) {
throw new RuntimeException(e);
}
}

public ClientBase() {
super();
}
Expand Down

0 comments on commit 2582180

Please sign in to comment.