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 2012/10/11 01:21:08 UTC
svn commit: r1396857 - /hbase/trunk/hbase-server/src/main/ruby/hbase/table.rb
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)