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

REST API for scan should return 410 when table is disabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.4.0, 1.3.1, 1.2.5, 2.0.0
    • None
    • None
    • Reviewed

    Description

      Background:
      When scanning using REST API, if the table is disabled in the middle of the scan, code 410 (Gone) should be returned.

      Currently in 1.3 and lower releases, ScannerResultGenerator#next() doesn't handle TableNotEnabledException, leading to the exception being ignored and code 204 is returned to caller.

      This was first spotted by Apache9 when investigating HBASE-17603.

      Patch for HBASE-17603 contains fix for this problem.

      This issue fixes the bug for 1.3 and lower branches and adds test for branch-1 and master branch.

      Attachments

        1. 17649.branch-1.3.v1.txt
          4 kB
          Ted Yu
        2. 17649.v1.txt
          3 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: