asterixdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amo...@apache.org
Subject incubator-asterixdb git commit: Fix Asterix Stream Reader
Date Mon, 28 Mar 2016 05:59:38 GMT
Repository: incubator-asterixdb
Updated Branches:
  refs/heads/master 121e1d9ab -> b71a9d09b


Fix Asterix Stream Reader

The reset method in the asterix stream reader wasn't working.
Calling clear() on a byte buffer only reset the position but
not the limit. hence, the reader still thinks that there are
some leftover data. This has been fixed to set the limit to 0

Change-Id: I41a84baacdd233120ca08eeebbd2d757b4e5c154
Reviewed-on: https://asterix-gerrit.ics.uci.edu/761
Reviewed-by: Yingyi Bu <buyingyi@gmail.com>
Tested-by: Jenkins <jenkins@fulliautomatix.ics.uci.edu>


Project: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/commit/b71a9d09
Tree: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/tree/b71a9d09
Diff: http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/diff/b71a9d09

Branch: refs/heads/master
Commit: b71a9d09b8f5117e6aa903a172d365d217b4357b
Parents: 121e1d9
Author: Abdullah Alamoudi <bamousaa@gmail.com>
Authored: Mon Mar 28 08:40:09 2016 +0300
Committer: abdullah alamoudi <bamousaa@gmail.com>
Committed: Sun Mar 27 22:53:19 2016 -0700

----------------------------------------------------------------------
 .gitignore                                                         | 1 +
 .../asterix/external/input/stream/AsterixInputStreamReader.java    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/b71a9d09/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 8d0e894..926dcfe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,6 +14,7 @@ asterix-app/rttest/
 asterix-app/mdtest/
 asterix-app/opttest/
 asterix-app/parserts/
+asterix-app/library/
 asterix-app/opt_parserts/
 asterix-app/runtime_parserts/
 asterix-app/data/csv/beer.csv

http://git-wip-us.apache.org/repos/asf/incubator-asterixdb/blob/b71a9d09/asterix-external-data/src/main/java/org/apache/asterix/external/input/stream/AsterixInputStreamReader.java
----------------------------------------------------------------------
diff --git a/asterix-external-data/src/main/java/org/apache/asterix/external/input/stream/AsterixInputStreamReader.java
b/asterix-external-data/src/main/java/org/apache/asterix/external/input/stream/AsterixInputStreamReader.java
index b1ef892..7e280a5 100644
--- a/asterix-external-data/src/main/java/org/apache/asterix/external/input/stream/AsterixInputStreamReader.java
+++ b/asterix-external-data/src/main/java/org/apache/asterix/external/input/stream/AsterixInputStreamReader.java
@@ -115,6 +115,6 @@ public class AsterixInputStreamReader extends Reader {
 
     @Override
     public void reset() throws IOException {
-        byteBuffer.clear();
+        byteBuffer.limit(0);
     }
 }


Mime
View raw message