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

delete tests in table_tests.rb(TestShell) always running on empty table.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.94.6, 0.95.0
    • 0.98.0, 0.94.7, 0.95.1
    • scripts
    • None
    • Reviewed

    Description

      In ruby,tests within the same test class are invoked in alphabetical order,so delete test cases are running on a table before adding any entry.
      TestShell logs showing "Row not found" for each delete test everytime.

      ERROR: Row Not Found
      
      Here is some help for this command:
      Delete all cells in a given row; pass a table name, row, and optionally
      a column and timestamp. Examples:
      
        hbase> deleteall 't1', 'r1'
        hbase> deleteall 't1', 'r1', 'c1'
        hbase> deleteall 't1', 'r1', 'c1', ts1
      
      The same commands also can be run on a table reference. Suppose you had a reference
      t to table 't1', the corresponding command would be:
      
        hbase> t.deleteall 'r1'
        hbase> t.deleteall 'r1', 'c1'
        hbase> t.deleteall 'r1', 'c1', ts1
      
      

      Before deleting a row we are checking whether the row is present or not.

          def _deleteall_internal(row, column = nil, timestamp = org.apache.hadoop.hbase.HConstants::LATEST_TIMESTAMP)
            raise ArgumentError, "Row Not Found" if _get_internal(row).nil?
      

      Need to improve delete tests in table_tests.rb.

      Attachments

        1. HBASE-8231.patch
          2 kB
          rajeshbabu
        2. 8231.094.txt
          2 kB
          Michael Stack
        3. 8231.094-v2.txt
          2 kB
          Lars Hofhansl

        Activity

          People

            rajesh23 rajeshbabu
            rajesh23 rajeshbabu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: