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

REST API for scan should return 404 when table does not exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.4.0, 2.0.0
    • 1.4.0, 2.0.0
    • REST, Scanners
    • None
    • Reviewed

    Description

      This was the first Jenkins build where TestScannerResource#testTableDoesNotExist started failing.

      https://builds.apache.org/job/HBase-1.4/612/jdk=JDK_1_8,label=Hadoop/testReport/junit/org.apache.hadoop.hbase.rest/TestScannerResource/testTableDoesNotExist/

      The test failure can be reproduced locally.

      The test failure seemed to start after HBASE-17508 went in.

      The problem is introduced after HBASE-17508. After HBASE-17508 we will not contact RS when getScanner. So for rest, get scanner will not return 404 either. But we should get a 404 when fetching data from the scanner but now it will return 204.

      Attachments

        1. 17603.v1.txt
          3 kB
          Ted Yu
        2. 17603.v3.txt
          3 kB
          Ted Yu
        3. 17603.v4.txt
          3 kB
          Ted Yu
        4. 17603.v4.txt
          4 kB
          Ted Yu
        5. 17603.v5.txt
          4 kB
          Ted Yu

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: