You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by te...@apache.org on 2013/07/11 05:23:51 UTC

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

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);