From issues-return-7299-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Sat Jun 1 20:14:02 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6CAAB18061A for ; Sat, 1 Jun 2019 22:14:02 +0200 (CEST) Received: (qmail 59155 invoked by uid 500); 1 Jun 2019 20:14:01 -0000 Mailing-List: contact issues-help@phoenix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@phoenix.apache.org Delivered-To: mailing list issues@phoenix.apache.org Received: (qmail 59145 invoked by uid 99); 1 Jun 2019 20:14:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Jun 2019 20:14:01 +0000 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 3DFCCE0101 for ; Sat, 1 Jun 2019 20:14:01 +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 C270224599 for ; Sat, 1 Jun 2019 20:14:00 +0000 (UTC) Date: Sat, 1 Jun 2019 20:14:00 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: issues@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-5307) Fix HashJoinMoreIT.testBug2961 failing after PHOENIX-5262 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-5307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16853809#comment-16853809 ] Lars Hofhansl commented on PHOENIX-5307: ---------------------------------------- I did run HashJoinMoreIT and it passes with this change, though. > Fix HashJoinMoreIT.testBug2961 failing after PHOENIX-5262 > --------------------------------------------------------- > > Key: PHOENIX-5307 > URL: https://issues.apache.org/jira/browse/PHOENIX-5307 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.15.0 > Reporter: chenglei > Assignee: chenglei > Priority: Major > Attachments: PHOENIX-5307_v1-4.x-HBase-1.4.patch > > > I noticed {{HashJoinMoreIT.testBug2961}} always failed after PHOENIX-5262, and the error stack is different from PHOENIX-5290: > {code} > java.lang.AssertionError > at org.apache.phoenix.end2end.join.HashJoinMoreIT.testBug2961(HashJoinMoreIT.java:908) > {code} > I think this problem is caused by following line 453 modified in PHOENIX-5262: > {code} > 445 if ( !isFixedWidth && ( sepByte == QueryConstants.DESC_SEPARATOR_BYTE > 446 || ( !exclusiveUpper > 447 && (fieldIndex < schema.getMaxFields() || inclusiveUpper || exclusiveLower) ) ) ) { > 448 key[offset++] = sepByte; > 449 // Set lastInclusiveUpperSingleKey back to false if this is the last pk column > 450 // as we don't want to increment the null byte in this case > 451 // To test if this is the last pk column we need to consider the span of this slot > 452 // and the field index to see if this slot considers the last column > 453 lastInclusiveUpperSingleKey &= (fieldIndex + slotSpan[i]) < schema.getMaxFields()-1; > 454 } > {code} > It did not consider the case that the last field is variable length and also DESC, when the last field is variable length and also {{DESC}}, the trailiing {{0xFF}} is not removed when stored in HBASE, so for such case, we should not set {{lastInclusiveUpperSingleKey}} back to false. -- This message was sent by Atlassian JIRA (v7.6.3#76005)