private void closeScanner() throws IOException { if (this.callable != null) { this.callable.setClose(); call(callable, caller, scannerTimeout, false); this.callable = null; } }
@Override public void close() { if (!scanMetricsPublished) writeScanMetrics(); if (callable != null) { callable.setClose(); try { call(callable, caller, scannerTimeout, false); } catch (UnknownScannerException e) { // We used to catch this error, interpret, and rethrow. However, we // have since decided that it's not nice for a scanner's close to // throw exceptions. Chances are it was just due to lease time out. LOG.debug("scanner failed to close", e); } catch (IOException e) { /* An exception other than UnknownScanner is unexpected. */ LOG.warn("scanner failed to close.", e); } callable = null; } closed = true; }
private void closeScanner() throws IOException { if (this.callable != null) { this.callable.setClose(); call(callable, caller, scannerTimeout, false); this.callable = null; } }
@Override public void close() { if (!scanMetricsPublished) writeScanMetrics(); if (callable != null) { callable.setClose(); try { call(callable, caller, scannerTimeout, false); } catch (UnknownScannerException e) { // We used to catch this error, interpret, and rethrow. However, we // have since decided that it's not nice for a scanner's close to // throw exceptions. Chances are it was just due to lease time out. LOG.debug("scanner failed to close", e); } catch (IOException e) { /* An exception other than UnknownScanner is unexpected. */ LOG.warn("scanner failed to close.", e); } callable = null; } closed = true; }
private void closeScanner() throws IOException { if (this.callable != null) { this.callable.setClose(); call(callable, caller, scannerTimeout, false); this.callable = null; } }
@Override public void close() { if (!scanMetricsPublished) writeScanMetrics(); if (callable != null) { callable.setClose(); try { call(callable, caller, scannerTimeout, false); } catch (UnknownScannerException e) { // We used to catch this error, interpret, and rethrow. However, we // have since decided that it's not nice for a scanner's close to // throw exceptions. Chances are it was just due to lease time out. LOG.debug("scanner failed to close", e); } catch (IOException e) { /* An exception other than UnknownScanner is unexpected. */ LOG.warn("scanner failed to close.", e); } callable = null; } closed = true; }
@Override public void close() { if (!scanMetricsPublished) writeScanMetrics(); if (callable != null) { callable.setClose(); try { call(callable, caller, scannerTimeout); } catch (UnknownScannerException e) { // We used to catch this error, interpret, and rethrow. However, we // have since decided that it's not nice for a scanner's close to // throw exceptions. Chances are it was just due to lease time out. } catch (IOException e) { /* An exception other than UnknownScanner is unexpected. */ LOG.warn("scanner failed to close. Exception follows: " + e); } callable = null; } closed = true; }
this.callable.setClose(); call(callable, caller, scannerTimeout); this.callable = null;
this.callable.setClose();