Return-Path: X-Original-To: apmail-phoenix-dev-archive@minotaur.apache.org Delivered-To: apmail-phoenix-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 810EC19BB8 for ; Tue, 5 Apr 2016 18:48:28 +0000 (UTC) Received: (qmail 17641 invoked by uid 500); 5 Apr 2016 18:48:28 -0000 Delivered-To: apmail-phoenix-dev-archive@phoenix.apache.org Received: (qmail 17574 invoked by uid 500); 5 Apr 2016 18:48:28 -0000 Mailing-List: contact dev-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 dev@phoenix.apache.org Received: (qmail 17563 invoked by uid 99); 5 Apr 2016 18:48:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2016 18:48:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F0C06C2574 for ; Tue, 5 Apr 2016 18:48:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.216 X-Spam-Level: X-Spam-Status: No, score=-4.216 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.996] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 8r50XbnjSdjM for ; Tue, 5 Apr 2016 18:48:27 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 917D45F341 for ; Tue, 5 Apr 2016 18:48:26 +0000 (UTC) Received: (qmail 17205 invoked by uid 99); 5 Apr 2016 18:48:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Apr 2016 18:48:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 7CE8C2C1F5D for ; Tue, 5 Apr 2016 18:48:25 +0000 (UTC) Date: Tue, 5 Apr 2016 18:48:25 +0000 (UTC) From: "Hudson (JIRA)" To: dev@phoenix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PHOENIX-2819) Remove problematic method ValueSchemaBuilder.addField(Field) 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-2819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15226906#comment-15226906 ] Hudson commented on PHOENIX-2819: --------------------------------- SUCCESS: Integrated in Phoenix-master #1183 (See [https://builds.apache.org/job/Phoenix-master/1183/]) PHOENIX-2819 Remove problematic method (maryannxue: rev 3420a973c3fbe5ee4483216e54596869665c7cc9) * phoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java * phoenix-core/src/main/java/org/apache/phoenix/index/IndexMaintainer.java * phoenix-core/src/main/java/org/apache/phoenix/schema/ValueSchema.java > Remove problematic method ValueSchemaBuilder.addField(Field) > ------------------------------------------------------------ > > Key: PHOENIX-2819 > URL: https://issues.apache.org/jira/browse/PHOENIX-2819 > Project: Phoenix > Issue Type: Bug > Affects Versions: 4.7.0 > Reporter: Maryann Xue > Assignee: Maryann Xue > Labels: secondary_index > Fix For: 4.8.0 > > Attachments: PHOENIX-2819-2.patch, PHOENIX-2819.patch > > > We should discard the method "ValueSchemaBuilder.addField(Field)" and use the other method signature instead, since this method might add more fields than wanted. > {code} > public ValueSchemaBuilder addField(Field field) { > fields.add(field); > return this; > } > {code} > If {{field.size}} is larger than 1, the above statement {{fields.add(field)}} will add more than one field into the list while the caller is expecting to add only ONE. > The only caller of this method is IndexMaintainer.generateIndexRowKeySchema() and it might generate a wrong row-key-schema as a result. -- This message was sent by Atlassian JIRA (v6.3.4#6332)