Repository: camel
Updated Branches:
refs/heads/master 2275e28fb -> 627ffe78b
CAMEL-7900 Honored chunksize in camel-hdfs
Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/2577217d
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2577217d
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2577217d
Branch: refs/heads/master
Commit: 2577217d4cd4078c9a7bd527ed6b5104a8fcb8d9
Parents: b32f5a3
Author: Willem Jiang <willem.jiang@gmail.com>
Authored: Fri Oct 10 21:58:47 2014 +0800
Committer: Willem Jiang <willem.jiang@gmail.com>
Committed: Fri Oct 10 23:02:24 2014 +0800
----------------------------------------------------------------------
.../main/java/org/apache/camel/component/hdfs/HdfsFileType.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/camel/blob/2577217d/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileType.java
----------------------------------------------------------------------
diff --git a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileType.java
b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileType.java
index a3b2112..97c174f 100644
--- a/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileType.java
+++ b/components/camel-hdfs/src/main/java/org/apache/camel/component/hdfs/HdfsFileType.java
@@ -75,7 +75,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);
|