return os.finish(); } catch (Throwable t) { BlobUtils.closeSilently(socket, LOG);
os.write(value, offset, len); return os.finish(); } catch (Throwable t) { BlobUtils.closeSilently(socket, LOG);
return os.finish(); } catch (Throwable t) { BlobUtils.closeSilently(socket, LOG);
return os.finish(); } catch (Throwable t) { BlobUtils.closeSilently(socket, LOG);
os.write(value, offset, len); return os.finish(); } catch (Throwable t) { BlobUtils.closeSilently(socket, LOG);
os.write(value, offset, len); return os.finish(); } catch (Throwable t) { BlobUtils.closeSilently(socket, LOG);
private PermanentBlobKey uploadDirectory(JobID jobId, Path file, FileSystem fs) throws IOException { try (BlobOutputStream blobOutputStream = new BlobOutputStream(jobId, PERMANENT_BLOB, socket)) { try (ZipOutputStream zipStream = new ZipOutputStream(blobOutputStream)) { compressDirectoryToZipfile(fs, fs.getFileStatus(file), fs.getFileStatus(file), zipStream); zipStream.finish(); return (PermanentBlobKey) blobOutputStream.finish(); } } }