[ 
https://issues.apache.org/jira/browse/HBASE-26275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Xiaolin Ha resolved HBASE-26275.
--------------------------------
    Resolution: Fixed

Merged to branch-2.4+, thanks [~xichaomin]  for contributing.

> update error message when executing deleteall with ROWPREFIXFILTER in meta 
> table
> --------------------------------------------------------------------------------
>
>                 Key: HBASE-26275
>                 URL: https://issues.apache.org/jira/browse/HBASE-26275
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>    Affects Versions: 2.4.11
>            Reporter: xichaomin
>            Assignee: xichaomin
>            Priority: Minor
>             Fix For: 2.5.0, 2.6.0, 3.0.0-alpha-3, 2.4.12
>
>
> ROWPREFIXFILTER doesn't work when execute deleteall with table hbase:meta。
>  
> {code:java}
> def _deleteall_internal(row, column = nil,
>                         timestamp = 
> org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP,
>                         args = {}, all_version = true)
>   # 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
>   if row.is_a?(Hash)
>     _deleterows_internal(row, column, timestamp, args, all_version)
>   else
>     d = _createdelete_internal(row, column, timestamp, args, all_version)
>     @table.delete(d)
>   end
> end {code}
>  
> If we allow ROWPREFIXFILTER of deleteall on hbase:meta, we should fix the 
> check condition,
> If we don't allow, we should modify the exception message.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to