hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1502095 - /hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DelimitedKeyPrefixRegionSplitPolicy.java
Date Thu, 11 Jul 2013 03:23:51 GMT
Author: tedyu
Date: Thu Jul 11 03:23:51 2013
New Revision: 1502095

URL: http://svn.apache.org/r1502095
Log:
HBASE-8856 Crash when attempting split with DelimitedKeyPrefixRegionSplitPolicy (Robert Dyer)


Modified:
    hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DelimitedKeyPrefixRegionSplitPolicy.java

Modified: hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DelimitedKeyPrefixRegionSplitPolicy.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DelimitedKeyPrefixRegionSplitPolicy.java?rev=1502095&r1=1502094&r2=1502095&view=diff
==============================================================================
--- hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DelimitedKeyPrefixRegionSplitPolicy.java
(original)
+++ hbase/branches/0.95/hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/DelimitedKeyPrefixRegionSplitPolicy.java
Thu Jul 11 03:23:51 2013
@@ -69,7 +69,7 @@ public class DelimitedKeyPrefixRegionSpl
   @Override
   protected byte[] getSplitPoint() {
     byte[] splitPoint = super.getSplitPoint();
-    if (delimiter != null) {
+    if (splitPoint != null && delimiter != null) {
 
       //find the first occurrence of delimiter in split point
       int index = com.google.common.primitives.Bytes.indexOf(splitPoint, delimiter);



Mime
View raw message