You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@carbondata.apache.org by ku...@apache.org on 2019/05/30 09:11:25 UTC
[carbondata] branch master updated: [HOTFIX] Fixed Compatibilty
Issue
This is an automated email from the ASF dual-hosted git repository.
kunalkapoor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/carbondata.git
The following commit(s) were added to refs/heads/master by this push:
new a1d51b8 [HOTFIX] Fixed Compatibilty Issue
a1d51b8 is described below
commit a1d51b83c76838c80cbd55f74c0bfcbf8abe6e9a
Author: manishnalla1994 <sh...@gmail.com>
AuthorDate: Mon May 27 14:52:03 2019 +0530
[HOTFIX] Fixed Compatibilty Issue
Problem : EOF exception was being thrown in case of old store while reading the blocklet Info.
Solution : Added a fix by writing the number of rows per page in case of old store.
This closes #3239
---
.../org/apache/carbondata/core/metadata/blocklet/BlockletInfo.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/core/src/main/java/org/apache/carbondata/core/metadata/blocklet/BlockletInfo.java b/core/src/main/java/org/apache/carbondata/core/metadata/blocklet/BlockletInfo.java
index 717bdbf..0d5e6ac 100644
--- a/core/src/main/java/org/apache/carbondata/core/metadata/blocklet/BlockletInfo.java
+++ b/core/src/main/java/org/apache/carbondata/core/metadata/blocklet/BlockletInfo.java
@@ -235,6 +235,9 @@ public class BlockletInfo implements Serializable, Writable {
for (int i = 0; i < getNumberOfRowsPerPage().length; i++) {
output.writeInt(getNumberOfRowsPerPage()[i]);
}
+ } else {
+ //for old store
+ output.writeShort(0);
}
}