From dev-return-56904-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Fri Jun 7 19:56:22 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 722F518067E for ; Fri, 7 Jun 2019 21:56:22 +0200 (CEST) Received: (qmail 10730 invoked by uid 500); 7 Jun 2019 19:56:21 -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 10576 invoked by uid 99); 7 Jun 2019 19:56:18 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jun 2019 19:56:18 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 8CEA8180C3E for ; Fri, 7 Jun 2019 19:56:17 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.051 X-Spam-Level: ** X-Spam-Status: No, score=2.051 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id paUwc-8JBsLS for ; Fri, 7 Jun 2019 19:56:16 +0000 (UTC) Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D7DB85F239 for ; Fri, 7 Jun 2019 19:56:15 +0000 (UTC) Received: by mail-pf1-f175.google.com with SMTP id a186so1769973pfa.5 for ; Fri, 07 Jun 2019 12:56:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=yNUlzkJsBirAGcsL+c1HHNkT8w7+MmM5T9+e+KAd+DI=; b=HixHeERcK5IpS8sJrG5VEgBLSuhbgmZ59eoWXte6NkE9dK6xEZCYOdXEzRP0JUZPt4 6v2OLC7p4KmRzPkujrvy0yklY3IuAxFCfEpLb38sMj0LJGssI+gTzzMg1hP5Quitkm+v Iy6C3kzVsC/+NcCpe8HiDFfxXf5rx5f3p4vsvSzThUpwh3tc4E+MdjcEWstKnWFUzkv9 1c50lN53MEzM+WDFF7JJTXMu1IBmTE2UOjrZTmV8PGWiTdyuGnxOQ74dWZl3O8qr0rTc 2mVVHwhFtE6x7e+BIsGtKn6c6GNjmEfwdpDIHLEmBnLKX9Mq2EC2aUz6T1dLgudSKtzf fiBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=yNUlzkJsBirAGcsL+c1HHNkT8w7+MmM5T9+e+KAd+DI=; b=IBZU8Y/yQEe8VR2uXsDxoGqvQuS3JcZXapl1i5ENBijIp+pBywvxFOq2tBFiMJC+3r /E23gQcIMbGRddC1tdhmtv4SiBHQXdV0fQYqWBgt/YqEK4KcqxqsrgxnWO54hqW1jhbx vzbTK+HqeREf58Om+b3hyV1GHw3RE8dor+pFJj3U8BdHp0eqkbq5+dpMasMw1pDH7rQD w2ZtlsWEruKaBpEOke8CzIjdoAAK8Ht0TGOufxEP6KlerZhRmB5jKq+kmCxkzUr1Uv35 JTekO2OqN12AisNbSE4Cn7yIFRwJIqDx8CDco5Rk3M8cHhBUSf7m97FOkOIGinx3zLGF 8NAQ== X-Gm-Message-State: APjAAAUo2RHhDhyD+BhEZa0yG7dycyP4Hpx1sFhzuJnxB70iM+ZjZLhV FxbOxG3P/OKn1lMOJlCJeuFPiru/QIHlvuSnB3E1Pr5B X-Google-Smtp-Source: APXvYqzEgRRzIbk/SIXzwipWNfCpysn3NLNDXEmxhQKTQx50MAvkUAWsaf3SDVD07IB5/dVjubm4JdH5mnr3WKotIPc= X-Received: by 2002:a17:90a:3aed:: with SMTP id b100mr7766911pjc.63.1559937374678; Fri, 07 Jun 2019 12:56:14 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: swaroopa kadam Date: Fri, 7 Jun 2019 12:56:02 -0700 Message-ID: Subject: Re: ArrayIndexOutOfBound while upserting in a view with index on a base table with index To: dev@phoenix.apache.org Content-Type: multipart/alternative; boundary="00000000000016f384058ac13911" --00000000000016f384058ac13911 Content-Type: text/plain; charset="UTF-8" Filed a jira: https://issues.apache.org/jira/browse/PHOENIX-5322 Thank you. On Wed, Jun 5, 2019 at 10:01 PM swaroopa kadam wrote: > Hi, > > I am trying to upsert a row in a view created on a base table which has > indexes, also the view has index too. I am getting ArrayIndexOutOfBound > exception from IndexMaintainer class. Without looking at the code -- my > hypothesis is code might be trying to update indexes on the base table as > well for the new row? > > java.lang.ArrayIndexOutOfBoundsException: -1 > at java.util.ArrayList.elementData(ArrayList.java:422) > at java.util.ArrayList.get(ArrayList.java:435) > at > org.apache.phoenix.index.IndexMaintainer.initCachedState(IndexMaintainer.java:1619) > at > org.apache.phoenix.index.IndexMaintainer.(IndexMaintainer.java:558) > > Do we not allow this? > I am on Phoenix version 4.13 . > > Thank you for the help. > > -- > > > Swaroopa Kadam > [image: https://]about.me/swaroopa_kadam > > -- Swaroopa Kadam [image: https://]about.me/swaroopa_kadam --00000000000016f384058ac13911--