@Override public void run() { MethodMetricsContext estimateGauge = MethodMetricsFactory.createMethodGauge(queryContext.getDriverConf(driver), true, "driverEstimate"); DriverQueryContext driverQueryContext = queryContext.getDriverContext().getDriverQueryContextMap().get(driver); if (driverQueryContext.getDriverQueryRewriteError() != null) { // skip estimate return; } try { driverQueryContext.setDriverCost(driver.estimate(queryContext)); succeeded = true; } catch (final LensException e) { this.cause = e; captureExceptionInformation(driverQueryContext, e); } catch (final Exception e) { captureExceptionInformation(driverQueryContext, e); } finally { estimateGauge.markSuccess(); } }
@Override public void run() { MethodMetricsContext estimateGauge = MethodMetricsFactory.createMethodGauge(queryContext.getDriverConf(driver), true, "driverEstimate"); DriverQueryContext driverQueryContext = queryContext.getDriverContext().getDriverQueryContextMap().get(driver); if (driverQueryContext.getDriverQueryRewriteError() != null) { // skip estimate return; } try { driverQueryContext.setDriverCost(driver.estimate(queryContext)); succeeded = true; } catch (final LensException e) { this.cause = e; captureExceptionInformation(driverQueryContext, e); } catch (final Exception e) { captureExceptionInformation(driverQueryContext, e); } finally { estimateGauge.markSuccess(); } }