public void closeOperation(OperationHandle opHandle) throws HiveSQLException { LOG.info("Closing operation: " + opHandle); Operation operation = removeOperation(opHandle); Metrics metrics = MetricsFactory.getInstance(); if (metrics != null) { try { metrics.decrementCounter(MetricsConstant.OPEN_OPERATIONS); } catch (Exception e) { LOG.warn("Error Reporting close operation to Metrics system", e); } } operation.close(); }
private void closeTimedOutOperations(List<Operation> operations) { acquire(false, false); try { for (Operation operation : operations) { removeOpHandle(operation.getHandle()); try { operation.close(); } catch (Exception e) { LOG.warn("Exception is thrown closing timed-out operation, reported open_operations metrics may be incorrect " + operation.getHandle(), e); } } } finally { release(false, false); } }
public void closeOperation(OperationHandle opHandle) throws HiveSQLException { Operation operation = removeOperation(opHandle); if (operation == null) { throw new HiveSQLException("Operation does not exist!"); } operation.close(); }
public void closeOperation(OperationHandle opHandle) throws HiveSQLException { Operation operation = removeOperation(opHandle); if (operation == null) { throw new HiveSQLException("Operation does not exist!"); } operation.close(); }
public void closeOperation(OperationHandle opHandle) throws HiveSQLException { Operation operation = removeOperation(opHandle); if (operation == null) { throw new HiveSQLException("Operation does not exist!"); } operation.close(); }
public void closeOperation(OperationHandle opHandle) throws HiveSQLException { Operation operation = removeOperation(opHandle); if (operation == null) { throw new HiveSQLException("Operation does not exist!"); } operation.close(); }
private void closeTimedOutOperations(List<Operation> operations) { acquire(false); try { for (Operation operation : operations) { opHandleSet.remove(operation.getHandle()); try { operation.close(); } catch (Exception e) { LOG.warn("Exception is thrown closing timed-out operation " + operation.getHandle(), e); } } } finally { release(false); } }
private void closeTimedOutOperations(List<Operation> operations) { acquire(false); try { for (Operation operation : operations) { opHandleSet.remove(operation.getHandle()); try { operation.close(); } catch (Exception e) { LOG.warn("Exception is thrown closing timed-out operation " + operation.getHandle(), e); } } } finally { release(false); } }
private void closeTimedOutOperations(List<Operation> operations) { acquire(false); try { for (Operation operation : operations) { opHandleSet.remove(operation.getHandle()); try { operation.close(); } catch (Exception e) { LOG.warn("Exception is thrown closing timed-out operation " + operation.getHandle(), e); } } } finally { release(false); } }
public void closeOperation(OperationHandle opHandle) throws HiveSQLException { LOG.info("Closing operation: " + opHandle); Operation operation = removeOperation(opHandle); if (operation == null) { throw new HiveSQLException("Operation does not exist: " + opHandle); } Metrics metrics = MetricsFactory.getInstance(); if (metrics != null) { try { metrics.decrementCounter(MetricsConstant.OPEN_OPERATIONS); } catch (Exception e) { LOG.warn("Error Reporting close operation to Metrics system", e); } } operation.close(); }
private void closeTimedOutOperations(List<Operation> operations) { acquire(false); try { for (Operation operation : operations) { opHandleSet.remove(operation.getHandle()); try { operation.close(); } catch (Exception e) { LOG.warn("Exception is thrown closing timed-out operation " + operation.getHandle(), e); } } } finally { release(false); } }
private void closeTimedOutOperations(List<Operation> operations) { acquire(false, false); try { for (Operation operation : operations) { removeOpHandle(operation.getHandle()); try { operation.close(); } catch (Exception e) { LOG.warn("Exception is thrown closing timed-out operation, reported open_operations metrics may be incorrect " + operation.getHandle(), e); } } } finally { release(false, false); } }