In the previous Test.java, replace this
private static String[] DEFAULT_SERVERS = { "pxc1" };
with the hosts to connect to, in case of 3 nodes I used:
private static String[] DEFAULT_SERVERS = { "pxc1", "pxc2", "pxc3" };
The bug is present with using a load balancer as well (the above sysbench solution used haproxy to connect to all nodes).
In the previous Test.java, replace this
private static String[] DEFAULT_SERVERS = { "pxc1" };
with the hosts to connect to, in case of 3 nodes I used:
private static String[] DEFAULT_SERVERS = { "pxc1", "pxc2", "pxc3" };
The bug is present with using a load balancer as well (the above sysbench solution used haproxy to connect to all nodes).