/** * Aborts this output stream and releases any system * resources associated with this stream. */ void abort() throws IOException { synchronized (this) { if (isClosed()) { return; } streamer.setLastException(new IOException("Lease timeout of " + (dfsClient.getHdfsTimeout() / 1000) + " seconds expired.")); closeThreads(true); } dfsClient.endFileLease(fileId); }
/** * Aborts this output stream and releases any system * resources associated with this stream. */ void abort() throws IOException { synchronized (this) { if (isClosed()) { return; } streamer.setLastException(new IOException("Lease timeout of " + (dfsClient.getHdfsTimeout() / 1000) + " seconds expired.")); closeThreads(true); } dfsClient.endFileLease(fileId); }
if (!isClosed()) { lastException.set(new IOException("IOException flush: " + e)); closeThreads(true);
/** * Aborts this output stream and releases any system * resources associated with this stream. */ void abort() throws IOException { final MultipleIOException.Builder b = new MultipleIOException.Builder(); synchronized (this) { if (isClosed()) { return; } getStreamer().getLastException().set( new IOException("Lease timeout of " + (dfsClient.getConf().getHdfsTimeout() / 1000) + " seconds expired.")); try { closeThreads(true); } catch (IOException e) { b.add(e); } } final IOException ioe = b.build(); if (ioe != null) { throw ioe; } }
if (!isClosed()) { lastException.set(new IOException("IOException flush: " + e)); closeThreads(true);
if (!isClosed()) { getStreamer().getLastException().set(e); closeThreads(true);