Return-Path: X-Original-To: apmail-accumulo-commits-archive@www.apache.org Delivered-To: apmail-accumulo-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4AFB810ADE for ; Tue, 15 Apr 2014 04:40:55 +0000 (UTC) Received: (qmail 72840 invoked by uid 500); 15 Apr 2014 04:40:55 -0000 Delivered-To: apmail-accumulo-commits-archive@accumulo.apache.org Received: (qmail 72772 invoked by uid 500); 15 Apr 2014 04:40:53 -0000 Mailing-List: contact commits-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list commits@accumulo.apache.org Received: (qmail 72750 invoked by uid 99); 15 Apr 2014 04:40:52 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 04:40:52 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id 8986298DEA9; Tue, 15 Apr 2014 04:40:52 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: elserj@apache.org To: commits@accumulo.apache.org Date: Tue, 15 Apr 2014 04:40:52 -0000 Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: [1/3] git commit: ACCUMULO-2668 Override the write method which takes a byte[] to call the efficient method on the wrapped OutputStream Repository: accumulo Updated Branches: refs/heads/1.6.0-SNAPSHOT 126b6482a -> e4cef7f20 refs/heads/master 0f0acb68b -> cffb86de6 ACCUMULO-2668 Override the write method which takes a byte[] to call the efficient method on the wrapped OutputStream FilterOutputStream's implementation for this write method is horribly inefficient, and causes a massive degradation in ingest performance. Signed-off-by: Josh Elser Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/e4cef7f2 Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/e4cef7f2 Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/e4cef7f2 Branch: refs/heads/1.6.0-SNAPSHOT Commit: e4cef7f209551ebe17e43058e182ca22f8f89293 Parents: 126b648 Author: Jonathan Park Authored: Tue Apr 15 00:37:21 2014 -0400 Committer: Josh Elser Committed: Tue Apr 15 00:40:10 2014 -0400 ---------------------------------------------------------------------- .../accumulo/core/security/crypto/NoFlushOutputStream.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/e4cef7f2/core/src/main/java/org/apache/accumulo/core/security/crypto/NoFlushOutputStream.java ---------------------------------------------------------------------- diff --git a/core/src/main/java/org/apache/accumulo/core/security/crypto/NoFlushOutputStream.java b/core/src/main/java/org/apache/accumulo/core/security/crypto/NoFlushOutputStream.java index a68bdfd..2f9f4bb 100644 --- a/core/src/main/java/org/apache/accumulo/core/security/crypto/NoFlushOutputStream.java +++ b/core/src/main/java/org/apache/accumulo/core/security/crypto/NoFlushOutputStream.java @@ -17,6 +17,7 @@ package org.apache.accumulo.core.security.crypto; import java.io.FilterOutputStream; +import java.io.IOException; import java.io.OutputStream; public class NoFlushOutputStream extends FilterOutputStream { @@ -26,6 +27,11 @@ public class NoFlushOutputStream extends FilterOutputStream { } @Override + public void write(byte[] b, int off, int len) throws IOException { + out.write(b, off, len); + } + + @Override public void flush() {} }