@Override public FSDataOutputStream append(Path path, int bufferSize, Progressable progress) throws IOException { this.acquirePermit("append " + path); return super.append(path, bufferSize, progress); }
/** * Add timer metrics to {@link DistributedFileSystem#append(Path, int, Progressable)} */ public FSDataOutputStream append (Path p, final int bufferSize, Progressable progress) throws IOException { try (Closeable context = new TimerContextWithLog(this.appendTimer.time(), "append", p)) { return super.append(p, bufferSize, progress); } }
@Override public FSDataOutputStream append(Path path, int bufferSize, Progressable progress) throws IOException { this.acquirePermit("append " + path); return super.append(path, bufferSize, progress); }
/** * Add timer metrics to {@link DistributedFileSystem#append(Path, int, Progressable)} */ public FSDataOutputStream append (Path p, final int bufferSize, Progressable progress) throws IOException { try (Closeable context = new TimerContextWithLog(this.appendTimer.time(), "append", p)) { return super.append(p, bufferSize, progress); } }