You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2010/05/19 06:43:49 UTC

svn commit: r946023 - in /hbase/trunk: CHANGES.txt core/src/main/ruby/hbase/table.rb

Author: stack
Date: Wed May 19 04:43:48 2010
New Revision: 946023

URL: http://svn.apache.org/viewvc?rev=946023&view=rev
Log:
HBASE-2561 Scanning .META. while split in progress yields IllegalArgumentException

Modified:
    hbase/trunk/CHANGES.txt
    hbase/trunk/core/src/main/ruby/hbase/table.rb

Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=946023&r1=946022&r2=946023&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Wed May 19 04:43:48 2010
@@ -335,6 +335,9 @@ Release 0.21.0 - Unreleased
                (Todd Lipcon via Stack)
    HBASE-2449  Local HBase does not stop properly
    HBASE-2539  Cannot start ZK before the rest in tests anymore
+   HBASE-2561  Scanning .META. while split in progress yields
+               IllegalArgumentException (Todd Lipcon via Stack)
+
 
   IMPROVEMENTS
    HBASE-1760  Cleanup TODOs in HTable

Modified: hbase/trunk/core/src/main/ruby/hbase/table.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/core/src/main/ruby/hbase/table.rb?rev=946023&r1=946022&r2=946023&view=diff
==============================================================================
--- hbase/trunk/core/src/main/ruby/hbase/table.rb (original)
+++ hbase/trunk/core/src/main/ruby/hbase/table.rb Wed May 19 04:43:48 2010
@@ -316,7 +316,12 @@ module Hbase
           return "timestamp=%d, value=%s" % [kv.getTimestamp, hri.toString]
         end
         if column == 'info:serverstartcode'
-          return "timestamp=%d, value=%s" % [kv.getTimestamp, Bytes.toLong(kv.getValue)]
+          if kv.getValue.length > 0
+            str_val = Bytes.toLong(kv.getValue)
+          else
+            str_val = Bytes.toStringBinary(kv.getValue)
+          end
+          return "timestamp=%d, value=%s" % [kv.getTimestamp, str_val]
         end
       end