HBASE-12120 HBase shell doesn't allow deleting of a cell by user with W-only permissions to it (Srikanth Srungarapu)

This commit is contained in:
Matteo Bertozzi 2014-10-02 02:31:02 +01:00
parent 504352e5e3
commit 79b11ae8fe
1 changed files with 5 additions and 1 deletions

View File

@ -169,7 +169,11 @@ EOF
# Delete a row
def _deleteall_internal(row, column = nil,
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP, args = {})
raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
# delete operation doesn't need read permission. Retaining the read check for
# meta table as a part of HBASE-5837.
if is_meta_table?
raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
end
temptimestamp = timestamp
if temptimestamp.kind_of?(Hash)
timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP