public void testBug22643() throws Exception {
  checkPingQuery(this.conn);
  Connection replConnection=getMasterSlaveReplicationConnection();
  try {
    checkPingQuery(replConnection);
  }
  finally {
    if (replConnection != null) {
      replConnection.close();
    }
  }
  Connection lbConn=getLoadBalancedConnection();
  try {
    checkPingQuery(lbConn);
  }
  finally {
    if (lbConn != null) {
      lbConn.close();
    }
  }
}

public void testBug22643 ( ) throws Exception { checkPingQuery ( this . conn ) ; Connection replConnection = getMasterSlaveReplicationConnection ( ) ; try { checkPingQuery ( replConnection ) ; } finally { if ( replConnection != null ) { replConnection . close ( ) ; } } Connection lbConn = getLoadBalancedConnection ( ) ; try { checkPingQuery ( lbConn ) ; } finally { if ( lbConn != null ) { lbConn . close ( ) ; } } }
test of a new feature to fix bug 22643 , specifying a " validation query " in your connection pool that starts with " slash - star ping slash - star " _exactly_ will cause the driver to " + instead send a ping to the server ( much lighter weight ) , and when using a replicationconnection or a loadbalancedconnection , will send the ping across all active connections .
