From dev-return-53716-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Thu Aug 23 02:43:09 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BE957180662 for ; Thu, 23 Aug 2018 02:43:08 +0200 (CEST) Received: (qmail 96478 invoked by uid 500); 23 Aug 2018 00:43:02 -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 96467 invoked by uid 99); 23 Aug 2018 00:43:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2018 00:43:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7B645C00D6 for ; Thu, 23 Aug 2018 00:43:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 5YKqb5yBirb1 for ; Thu, 23 Aug 2018 00:43:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DFCFB5F1F0 for ; Thu, 23 Aug 2018 00:43:00 +0000 (UTC) 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 63AB3E0234 for ; Thu, 23 Aug 2018 00:43:00 +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 1F6142469F for ; Thu, 23 Aug 2018 00:43:00 +0000 (UTC) Date: Thu, 23 Aug 2018 00:43:00 +0000 (UTC) From: "Lars Hofhansl (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-4849) UPSERT SELECT fails with stale region boundary exception after a split MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PHOENIX-4849?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lars Hofhansl updated PHOENIX-4849: ----------------------------------- Attachment: PHOENIX-4849-fix.txt > UPSERT SELECT fails with stale region boundary exception after a split > ---------------------------------------------------------------------- > > Key: PHOENIX-4849 > URL: https://issues.apache.org/jira/browse/PHOENIX-4849 > Project: Phoenix > Issue Type: Bug > Reporter: Akshita Malhotra > Priority: Major > Attachments: PHOENIX-4849-fix.txt, PHOENIX-4849.patch > > > UPSERT SELECT throws a=C2=A0StaleRegionBoundaryCacheException immediately= after a split. On the other hand, an upsert followed by a select for examp= le works absolutely fine > org.apache.phoenix.schema.StaleRegionBoundaryCacheException: ERROR 1108 (= XCL08): Cache of region boundaries are out of date. > at org.apache.phoenix.exception.SQLExceptionCode$14.newException(SQLExcep= tionCode.java:365) > at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExcep= tionInfo.java:150) > at org.apache.phoenix.util.ServerUtil.parseRemoteException(ServerUtil.ja= va:183) > at org.apache.phoenix.util.ServerUtil.parseServerExceptionOrNull(ServerU= til.java:167) > at org.apache.phoenix.util.ServerUtil.parseServerException(ServerUtil.ja= va:134) > at org.apache.phoenix.iterate.ScanningResultIterator.next(ScanningResult= Iterator.java:153) > at org.apache.phoenix.iterate.TableResultIterator.next(TableResultIterat= or.java:228) > at org.apache.phoenix.iterate.LookAheadResultIterator$1.advance(LookAhea= dResultIterator.java:47) > at org.apache.phoenix.iterate.LookAheadResultIterator.init(LookAheadResu= ltIterator.java:59) > at org.apache.phoenix.iterate.LookAheadResultIterator.peek(LookAheadResu= ltIterator.java:73) > at org.apache.phoenix.iterate.SerialIterators$SerialIterator.nextIterato= r(SerialIterators.java:187) > at org.apache.phoenix.iterate.SerialIterators$SerialIterator.currentIter= ator(SerialIterators.java:160) > at org.apache.phoenix.iterate.SerialIterators$SerialIterator.peek(Serial= Iterators.java:218) > at org.apache.phoenix.iterate.ConcatResultIterator.currentIterator(Conca= tResultIterator.java:100) > at org.apache.phoenix.iterate.ConcatResultIterator.next(ConcatResultIter= ator.java:117) > at org.apache.phoenix.iterate.DelegateResultIterator.next(DelegateResult= Iterator.java:44) > at org.apache.phoenix.iterate.LimitingResultIterator.next(LimitingResult= Iterator.java:47) > at org.apache.phoenix.jdbc.PhoenixResultSet.next(PhoenixResultSet.java:8= 05) > at org.apache.phoenix.compile.UpsertCompiler.upsertSelect(UpsertCompiler= .java:219) > at org.apache.phoenix.compile.UpsertCompiler$ClientUpsertSelectMutationP= lan.execute(UpsertCompiler.java:1292) > at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java= :408) > at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java= :391) > at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53) > at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixState= ment.java:390) > at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixState= ment.java:378) > at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPrepa= redStatement.java:173) > at org.apache.phoenix.jdbc.PhoenixPreparedStatement.execute(PhoenixPrepa= redStatement.java:183) > at org.apache.phoenix.end2end.UpsertSelectAfterSplitTest.upsertSelectDat= a1(UpsertSelectAfterSplitTest.java:109) > at org.apache.phoenix.end2end.UpsertSelectAfterSplitTest.testUpsertSelec= t(UpsertSelectAfterSplitTest.java:59) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framework= Method.java:50) > at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCal= lable.java:12) > at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMe= thod.java:47) > at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMet= hod.java:17) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun= ner.java:78) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRun= ner.java:57) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) > at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.= java:26) > at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48) > at org.junit.rules.RunRules.evaluate(RunRules.java:20) > at org.junit.runners.ParentRunner.run(ParentRunner.java:363) > at org.junit.runner.JUnitCore.run(JUnitCore.java:137) > at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4Id= eaTestRunner.java:119) > at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4Id= eaTestRunner.java:42) > at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(J= UnitStarter.java:234) > at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:7= 4) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.= java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces= sorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:498) > at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) -- This message was sent by Atlassian JIRA (v7.6.3#76005)