@Override public void close() throws IOException { try { format.close(); } catch (Exception ex) { cleanup(); throw ex; } }
format.close();
@Override public void close() throws IOException { for (OutputFormat<IT> outputFormat : formatsPerSubdirectory.values()) { outputFormat.close(); } formatsPerSubdirectory.clear(); }
@Override public void close() throws IOException { for (OutputFormat<IT> outputFormat : formatsPerSubdirectory.values()) { outputFormat.close(); } formatsPerSubdirectory.clear(); }
@Override public void close() throws IOException { try { format.close(); } catch (Exception ex) { cleanup(); throw ex; } }
@Override public void close() throws IOException { try { format.close(); } catch (Exception ex) { cleanup(); throw ex; } }
@Override public void close() throws IOException { try { format.close(); } catch (Exception ex) { cleanup(); throw ex; } }
@Override public void cancel() throws Exception { this.taskCanceled = true; OutputFormat<IT> format = this.format; if (format != null) { try { this.format.close(); } catch (Throwable t) {} // make a best effort to clean up try { if (!cleanupCalled && format instanceof CleanupWhenUnsuccessful) { cleanupCalled = true; ((CleanupWhenUnsuccessful) format).tryCleanupOnError(); } } catch (Throwable t) { LOG.error("Cleanup on error failed.", t); } } LOG.debug(getLogString("Cancelling data sink operator")); }
@Override public void cancel() throws Exception { this.taskCanceled = true; OutputFormat<IT> format = this.format; if (format != null) { try { this.format.close(); } catch (Throwable t) {} // make a best effort to clean up try { if (!cleanupCalled && format instanceof CleanupWhenUnsuccessful) { cleanupCalled = true; ((CleanupWhenUnsuccessful) format).tryCleanupOnError(); } } catch (Throwable t) { LOG.error("Cleanup on error failed.", t); } } LOG.debug(getLogString("Cancelling data sink operator")); }
@Override public void cancel() throws Exception { this.taskCanceled = true; OutputFormat<IT> format = this.format; if (format != null) { try { this.format.close(); } catch (Throwable t) {} // make a best effort to clean up try { if (!cleanupCalled && format instanceof CleanupWhenUnsuccessful) { cleanupCalled = true; ((CleanupWhenUnsuccessful) format).tryCleanupOnError(); } } catch (Throwable t) { LOG.error("Cleanup on error failed.", t); } } LOG.debug(getLogString("Cancelling data sink operator")); }
@Override public void cancel() throws Exception { this.taskCanceled = true; OutputFormat<IT> format = this.format; if (format != null) { try { this.format.close(); } catch (Throwable t) {} // make a best effort to clean up try { if (!cleanupCalled && format instanceof CleanupWhenUnsuccessful) { cleanupCalled = true; ((CleanupWhenUnsuccessful) format).tryCleanupOnError(); } } catch (Throwable t) { LOG.error("Cleanup on error failed.", t); } } LOG.debug(getLogString("Cancelling data sink operator")); }
format.close();