lhotari commented on code in PR #21885:
URL: https://github.com/apache/pulsar/pull/21885#discussion_r1468195690
##########
pulsar-broker/src/test/java/org/apache/pulsar/broker/auth/MockedPulsarServiceBaseTest.java:
##########
@@ -717,5 +720,16 @@ protected void sleepSeconds(int seconds){
}
}
+ public static void reconnectAllConnections(PulsarClientImpl c) throws
Exception {
+ ConnectionPool pool = c.getCnxPool();
+ Method closeAllConnections =
ConnectionPool.class.getDeclaredMethod("closeAllConnections", new Class[]{});
+ closeAllConnections.setAccessible(true);
+ closeAllConnections.invoke(pool, new Object[]{});
+ }
+
+ public void reconnectAllConnections() throws Exception {
Review Comment:
This breaks Pulsar SQL / Trino tests in branch-3.1 and before. I created
#21976 to address the problem.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]