Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

GORA-146 HBaseStore does not properly set endkey

git-svn-id: https://svn.apache.org/repos/asf/gora/trunk@1359126 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 2bfeabadb562a202c2150c213baf71a605401d25 1 parent 83c9255
Ferdy Galema authored
View
2  CHANGES.txt
@@ -6,6 +6,8 @@ Gora Change Log
0.3 (trunk) Current Development:
+* GORA-146 HBaseStore does not properly set endkey (ferdy)
+
* GORA-140 Requires some adjustments on dependency at gora-cassandra (kazk, lewismc)
* GORA-138 gora-cassandra array type support: Double fix for GORA-81 Replace CassandraStore#addOrUpdateField with TypeInferringSerializer to take advantage of when the value is already of type ByteBuffer. (Kazuomi Kashii via lewismc)
View
10 gora-hbase/src/main/java/org/apache/gora/hbase/store/HBaseStore.java
@@ -325,13 +325,13 @@ public void flush() throws IOException {
(stopRow.length == 0 ||
Bytes.compareTo(stopRow, keys.getFirst()[i]) > 0)) {
- byte[] splitStart = (startRow.length == 0 ||
- Bytes.compareTo(keys.getFirst()[i], startRow) >= 0) ?
+ byte[] splitStart = startRow.length == 0 ||
+ Bytes.compareTo(keys.getFirst()[i], startRow) >= 0 ?
keys.getFirst()[i] : startRow;
- byte[] splitStop = (stopRow.length == 0 ||
- Bytes.compareTo(keys.getSecond()[i], stopRow) <= 0) ?
- keys.getSecond()[i] : stopRow;
+ byte[] splitStop = (stopRow.length == 0 ||
+ Bytes.compareTo(keys.getSecond()[i], stopRow) <= 0) &&
+ keys.getSecond()[i].length > 0 ? keys.getSecond()[i] : stopRow;
K startKey = Arrays.equals(HConstants.EMPTY_START_ROW, splitStart) ?
null : HBaseByteInterface.fromBytes(keyClass, splitStart);
Please sign in to comment.
Something went wrong with that request. Please try again.