private static void closeConnections(String handleId, List<Connection> handleConnections) {
    if (handleConnections != null) {
      LOG.debug("Closing {} connections for handle ID {}", handleConnections.size(), handleId);
      for (Connection conn : handleConnections) {
        try {
          conn.close();
        } catch (Exception err) {
          LOG.error("Error while closing connection for " + handleId, err);
        }
      }
    } else {
      LOG.debug("No connection found for handle ID {}", handleId);
    }
  }
Close the connection associated with the handle ID, if getSplits() was configured with a handle ID.
Call when the application is done using the splits generated by getSplits().
@param handleId Handle ID used in configuration for getSplits()
@throws IOException
llap-ext-client/src/java/org/apache/hadoop/hive/llap/LlapBaseInputFormat.java