hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1396857 - /hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb
Date Wed, 10 Oct 2012 23:21:08 GMT
Author: tedyu
Date: Wed Oct 10 23:21:08 2012
New Revision: 1396857

URL: http://svn.apache.org/viewvc?rev=1396857&view=rev
Log:
HBASE-5837 hbase shell deleteall to .META. allows insertion of malformed rowkey (Ricky Saltzer)


Modified:
    hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb

Modified: hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb?rev=1396857&r1=1396856&r2=1396857&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb (original)
+++ hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb Wed Oct 10 23:21:08 2012
@@ -140,6 +140,7 @@ EOF
     #----------------------------------------------------------------------------------------------
     # Delete a row
     def _deleteall_internal(row, column = nil, timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP)
+      raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
       d = org.apache.hadoop.hbase.client.Delete.new(row.to_s.to_java_bytes, timestamp, nil)
       if column
         family, qualifier = parse_column_name(column)



Mime
View raw message