@VisibleForTesting
  protected int getNumRetries() {
    return maxRetries;
  }
Create a new connection that shares the same session ID as the current connection.
jdbc/src/java/org/apache/hive/jdbc/HiveConnection.java