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 3A71E200B2A for ; Sat, 25 Jun 2016 22:09:39 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 39357160A49; Sat, 25 Jun 2016 20:09:39 +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 A91FC160A66 for ; Sat, 25 Jun 2016 22:09:38 +0200 (CEST) Received: (qmail 33301 invoked by uid 500); 25 Jun 2016 20:09:37 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 33278 invoked by uid 99); 25 Jun 2016 20:09:37 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 25 Jun 2016 20:09:37 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 4774D2C14F8 for ; Sat, 25 Jun 2016 20:09:37 +0000 (UTC) Date: Sat, 25 Jun 2016 20:09:37 +0000 (UTC) From: "ChiaPing Tsai (JIRA)" To: dev@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-16113) The raw scan with "zero" max versions should return empty result MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 25 Jun 2016 20:09:39 -0000 ChiaPing Tsai created HBASE-16113: ------------------------------------- Summary: The raw scan with "zero" max versions should return empty result Key: HBASE-16113 URL: https://issues.apache.org/jira/browse/HBASE-16113 Project: HBase Issue Type: Bug Reporter: ChiaPing Tsai Priority: Trivial Step 1: put a cell Step 2: delete the cell Step 3: Scan#setRaw(true).setMaxVersions(0) Step 4: Result result = table.getScanner(scan).next() Step 5: The result will contain a Cell of DELETE type Is it a correct result ? The critical code is shown below: {code:title=ScanWildcardColumnTracker.java|borderStyle=solid} // May be we should check the verion first private MatchCode checkVersion(byte type, long timestamp) { if (!CellUtil.isDelete(type)) { currentCount++; } if (currentCount > maxVersions) { return ScanQueryMatcher.MatchCode.SEEK_NEXT_COL; // skip to next col } // keep the KV if required by minversions or it is not expired, yet if (currentCount <= minVersions || !isExpired(timestamp)) { setTSAndType(timestamp, type); return ScanQueryMatcher.MatchCode.INCLUDE; } else { return MatchCode.SEEK_NEXT_COL; } } {code} Comments? Thanks -- This message was sent by Atlassian JIRA (v6.3.4#6332)