Skip to content
Merged
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 @@ -123,7 +123,10 @@ public synchronized void doSetup() throws Exception {
QueryServicesOptions.DEFAULT_EXTRA_JDBC_ARGUMENTS);
hbaseTestUtil.startMiniCluster();
zkQuorum = "localhost:" + hbaseTestUtil.getZkCluster().getClientPort();
url = PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + zkQuorum;
// A unique principal gives each mini cluster its own cached connection. A reused ZK port then
// does not map to a connection for a stopped cluster.
url = PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + zkQuorum
+ PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + BaseTest.generateUniqueName();
DriverManager.registerDriver(PhoenixDriver.INSTANCE);
checkForPreConditions(compatibleClientVersion, conf);
}
Expand Down
Loading