Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id ACF02200C26 for ; Sat, 11 Feb 2017 07:18:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id AB844160B69; Sat, 11 Feb 2017 06:18:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F1E27160B5C for ; Sat, 11 Feb 2017 07:18:44 +0100 (CET) Received: (qmail 77580 invoked by uid 500); 11 Feb 2017 06:18:44 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 77569 invoked by uid 99); 11 Feb 2017 06:18:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Feb 2017 06:18:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 83FA71A0446 for ; Sat, 11 Feb 2017 06:18:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.199 X-Spam-Level: X-Spam-Status: No, score=-1.199 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id sV-ZZyGoTpgc for ; Sat, 11 Feb 2017 06:18:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 892C55F576 for ; Sat, 11 Feb 2017 06:18:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id EF77AE02D5 for ; Sat, 11 Feb 2017 06:18:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id A4F0421D64 for ; Sat, 11 Feb 2017 06:18:41 +0000 (UTC) Date: Sat, 11 Feb 2017 06:18:41 +0000 (UTC) From: "Duo Zhang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-17603) REST api for scan should return 404 when table does not exist MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 11 Feb 2017 06:18:45 -0000 [ https://issues.apache.org/jira/browse/HBASE-17603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862249#comment-15862249 ] Duo Zhang commented on HBASE-17603: ----------------------------------- I had filed HBASE-17607 but IIRC you said please use HBASE-17603 to fix the problem so I resolve HBASE-17607 as duplicated by this issue and move the discussion here. So I think we should fix the problem in this issue. And IMO, the patch here only fix the UT, and is not useful for fixing the real problem. Please think a little further, let's fix the whole problem at once. The first problem is, if we delete or disable the table when a scanner is on going, what will happen to our scanner? Or what do we want to give user? Thanks. > REST api for scan should return 404 when table does not exist > ------------------------------------------------------------- > > Key: HBASE-17603 > URL: https://issues.apache.org/jira/browse/HBASE-17603 > Project: HBase > Issue Type: Bug > Components: REST, scan > Affects Versions: 2.0.0, 1.4.0 > Reporter: Ted Yu > Priority: Blocker > Fix For: 2.0.0, 1.4.0 > > Attachments: 17603.v1.txt, 17603.v3.txt, 17603.v4.txt > > > 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. -- This message was sent by Atlassian JIRA (v6.3.15#6346)