camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject [1/6] git commit: CAMEL-7900 Honored chunksize in camel-hdfs2
Date Sat, 11 Oct 2014 05:58:13 GMT
Repository: camel
Updated Branches:
  refs/heads/camel-2.13.x 4ff0ee9f0 -> 21ff69857
  refs/heads/camel-2.14.x 2bcac18c8 -> 301bc404e


CAMEL-7900 Honored chunksize in camel-hdfs2


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/230c0dd5
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/230c0dd5
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/230c0dd5

Branch: refs/heads/camel-2.14.x
Commit: 230c0dd52b68c9f4e9712dea220658e6bce00c75
Parents: 2bcac18
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Fri Oct 10 21:58:11 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Sat Oct 11 13:56:20 2014 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/camel/component/hdfs2/HdfsFileType.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/230c0dd5/components/camel-hdfs2/src/main/java/org/apache/camel/component/hdfs2/HdfsFileType.java
----------------------------------------------------------------------
diff --git a/components/camel-hdfs2/src/main/java/org/apache/camel/component/hdfs2/HdfsFileType.java
b/components/camel-hdfs2/src/main/java/org/apache/camel/component/hdfs2/HdfsFileType.java
index 2df0bba..bbe0172 100644
--- a/components/camel-hdfs2/src/main/java/org/apache/camel/component/hdfs2/HdfsFileType.java
+++ b/components/camel-hdfs2/src/main/java/org/apache/camel/component/hdfs2/HdfsFileType.java
@@ -76,7 +76,7 @@ public enum HdfsFileType {
         public long next(HdfsInputStream hdfsistr, Holder<Object> key, Holder<Object>
value) {
             try {
                 ByteArrayOutputStream bos = new ByteArrayOutputStream(hdfsistr.getChunkSize());
-                byte buf[] = new byte[HdfsConstants.DEFAULT_BUFFERSIZE];
+                byte buf[] = new byte[hdfsistr.getChunkSize()];
                 int bytesRead = ((InputStream) hdfsistr.getIn()).read(buf);
                 if (bytesRead >= 0) {
                     bos.write(buf, 0, bytesRead);


Mime
View raw message