Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B1FC99CF for ; Sat, 1 Oct 2011 04:57:12 +0000 (UTC) Received: (qmail 85293 invoked by uid 500); 1 Oct 2011 04:57:11 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 85106 invoked by uid 500); 1 Oct 2011 04:57:10 -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 85081 invoked by uid 99); 1 Oct 2011 04:57:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Oct 2011 04:57:09 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Oct 2011 04:57:06 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7FF6B2A33B7 for ; Sat, 1 Oct 2011 04:56:45 +0000 (UTC) Date: Sat, 1 Oct 2011 04:56:45 +0000 (UTC) From: "stack (Commented) (JIRA)" To: issues@hbase.apache.org Message-ID: <74368052.14514.1317445005525.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <398020943.22455.1315345751062.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4334) HRegion.get never validates row MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-4334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118668#comment-13118668 ] stack commented on HBASE-4334: ------------------------------ This bit looks strange to me Lars: {code} + // start row can be empty in tests, so allow for that + byte[] startRow = scan.getStartRow(); + if (startRow != null && !Bytes.equals(startRow, HConstants.EMPTY_START_ROW)) { {code} Its like tests get dispensation. Should we fix the tests? Otherwise patch looks good to me. > HRegion.get never validates row > ------------------------------- > > Key: HBASE-4334 > URL: https://issues.apache.org/jira/browse/HBASE-4334 > Project: HBase > Issue Type: Bug > Components: regionserver > Affects Versions: 0.90.4 > Reporter: Joe Pallas > Assignee: Lars Hofhansl > Fix For: 0.92.0 > > Attachments: 4334.txt > > > If a client gets confused (possibly by a hole in .META., see HBASE-4333), it may send a request to the wrong region. Paths through put, delete, incrementColumnValue, and checkAndMutate all call checkRow either directly or indirectly (through getLock). But get apparently does not. This can result in returning an incorrect empty result instead of a WrongRegionException. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira