Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26275

update error message when executing deleteall with ROWPREFIXFILTER in meta table

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.11
    • 2.5.0, 3.0.0-alpha-3, 2.4.12
    • shell
    • None

    Description

      ROWPREFIXFILTER doesn't work when execute deleteall with table hbase:meta。

       

      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 

       

      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.

       

       

      Attachments

        Activity

          People

            xichaomin xi chaomin
            xichaomin xi chaomin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: