From dev-return-55941-archive-asf-public=cust-asf.ponee.io@phoenix.apache.org Tue Apr 2 13:01: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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 1ADB7180672 for ; Tue, 2 Apr 2019 15:01:01 +0200 (CEST) Received: (qmail 41515 invoked by uid 500); 2 Apr 2019 13:01:01 -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 41503 invoked by uid 99); 2 Apr 2019 13:01: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; Tue, 02 Apr 2019 13:01: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 52D25E00CC for ; Tue, 2 Apr 2019 13:01: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 190532459A for ; Tue, 2 Apr 2019 13:01:00 +0000 (UTC) Date: Tue, 2 Apr 2019 13:01:00 +0000 (UTC) From: "jaanai (JIRA)" To: dev@phoenix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (PHOENIX-5226) The format of VIEW_MODIFIED_PROPERTY_BYTES is incorrect as a tag of the cell 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-5226?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:all-tabpanel ] jaanai updated PHOENIX-5226: ---------------------------- Description:=20 We use a tag of cell to indicat that some properties should not be derived = from the base table for view table. VIEW_MODIFIED_PROPERTY_BYTES is used a = tag bytes, but the format is incorrect, the below is a reference from KeyVa= lue interface: {quote}KeyValue can optionally contain Tags. When it contains tags, it is a= dded in the byte array after * the value part. The format for this part is: . * tagslength maximum is Short.MAX_SIZE. The tagsbytes * contain one or more tags where as each tag is of the form * . tagtype is one= byte * and taglength maximum is Short.MAX_SIZE and it= includes 1 byte type * length and actual tag bytes length.{quote} The CATALOG table will be badly affected. Some errors will be caused when r= eads CATALOG table. =C2=A0 {code:java} 0: jdbc:phoenix:thin:url=3Dhttp://localhost> drop view "test_2"; Error: Err= or -1 (00000) : Error while executing SQL "drop view "test_2"": Remote driv= er error: RuntimeException: org.apache.phoenix.exception.PhoenixIOException= : org.apache.hadoop.hbase.DoNotRetryIOException: test_2: 4 at org.apache.ph= oenix.util.ServerUtil.createIOException(ServerUtil.java:114) at org.apache.= phoenix.coprocessor.MetaDataEndpointImpl.dropTable(MetaDataEndpointImpl.jav= a:2729) at org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaData= Service.callMethod(MetaDataProtos.java:17078) at org.apache.hadoop.hbase.re= gionserver.HRegion.execService(HRegion.java:8210) at org.apache.hadoop.hbas= e.regionserver.RSRpcServices.execServiceOnRegion(RSRpcServices.java:2475) a= t org.apache.hadoop.hbase.regionserver.RSRpcServices.execService(RSRpcServi= ces.java:2457) at org.apache.hadoop.hbase.shaded.protobuf.generated.ClientP= rotos$ClientService$2.callBlockingMethod(ClientProtos.java:42010) at org.ap= ache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:418) at org.apache.hado= op.hbase.ipc.CallRunner.run(CallRunner.java:136) at org.apache.hadoop.hbase= .ipc.RpcExecutor$Handler.run(RpcExecutor.java:324) at org.apache.hadoop.hba= se.ipc.RpcExecutor$Handler.run(RpcExecutor.java:304) Caused by: java.lang.A= rrayIndexOutOfBoundsException: 4 at org.apache.hadoop.hbase.ArrayBackedTag.= (ArrayBackedTag.java:97) at org.apache.hadoop.hbase.CellUtil$5.next(C= ellUtil.java:1107) at org.apache.hadoop.hbase.CellUtil$5.next(CellUtil.java= :1094) at org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatche= r.isCellTTLExpired(ScanQueryMatcher.java:153) at org.apache.hadoop.hbase.re= gionserver.querymatcher.ScanQueryMatcher.preCheck(ScanQueryMatcher.java:198= ) at org.apache.hadoop.hbase.regionserver.querymatcher.NormalUserScanQueryM= atcher.match(NormalUserScanQueryMatcher.java:64) at org.apache.hadoop.hbase= .regionserver.StoreScanner.next(StoreScanner.java:578) {code} =C2=A0 was: We use a tag of cell to indicat that some properties should not be derived = from the base table for view table. VIEW_MODIFIED_PROPERTY_BYTES is used a= tag bytes, but the format is incorrect, the below is a reference from KeyV= alue interface: {quote} KeyValue can optionally contain Tags. When it contains tags, it is added in= the byte array after * the value part. The format for this part is: <tagslength><= ;tagsbytes>. * tagslength maximum is Short.MAX_SIZE. The tagsbytes * contain one or more tags where as each tag is of the form * <taglength><tagtype><tagbytes>. tag= type is one byte * and taglength maximum is Short.MAX_SIZE and it= includes 1 byte type * length and actual tag bytes length. {quote} The CATALOG table will be badly affected. Some errors will be caused when r= eads CATALOG table. > The format of VIEW_MODIFIED_PROPERTY_BYTES is incorrect as a tag of the = cell > -------------------------------------------------------------------------= ---- > > Key: PHOENIX-5226 > URL: https://issues.apache.org/jira/browse/PHOENIX-5226 > Project: Phoenix > Issue Type: Bug > Affects Versions: 5.0.0, 4.14.1 > Reporter: jaanai > Assignee: jaanai > Priority: Critical > Attachments: Screen Shot 2019-04-01 at 16.09.23.png, Screen Shot = 2019-04-01 at 16.13.10.png > > > We use a tag of cell to indicat that some properties should not be derive= d from the base table for view table. VIEW_MODIFIED_PROPERTY_BYTES is used = a tag bytes, but the format is incorrect, the below is a reference from Key= Value interface: > {quote}KeyValue can optionally contain Tags. When it contains tags, it is= added in the byte array after > * the value part. The format for this part is: . > * tagslength maximum is Short.MAX_SIZE. The tagsbytes > * contain one or more tags where as each tag is of the form > * . tagtype is o= ne byte > * and taglength maximum is Short.MAX_SIZE and = it includes 1 byte type > * length and actual tag bytes length.{quote} > The CATALOG table will be badly affected. Some errors will be caused when= reads CATALOG table. > =C2=A0 > {code:java} > 0: jdbc:phoenix:thin:url=3Dhttp://localhost> drop view "test_2"; Error: E= rror -1 (00000) : Error while executing SQL "drop view "test_2"": Remote dr= iver error: RuntimeException: org.apache.phoenix.exception.PhoenixIOExcepti= on: org.apache.hadoop.hbase.DoNotRetryIOException: test_2: 4 at org.apache.= phoenix.util.ServerUtil.createIOException(ServerUtil.java:114) at org.apach= e.phoenix.coprocessor.MetaDataEndpointImpl.dropTable(MetaDataEndpointImpl.j= ava:2729) at org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDa= taService.callMethod(MetaDataProtos.java:17078) at org.apache.hadoop.hbase.= regionserver.HRegion.execService(HRegion.java:8210) at org.apache.hadoop.hb= ase.regionserver.RSRpcServices.execServiceOnRegion(RSRpcServices.java:2475)= at org.apache.hadoop.hbase.regionserver.RSRpcServices.execService(RSRpcSer= vices.java:2457) at org.apache.hadoop.hbase.shaded.protobuf.generated.Clien= tProtos$ClientService$2.callBlockingMethod(ClientProtos.java:42010) at org.= apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:418) at org.apache.ha= doop.hbase.ipc.CallRunner.run(CallRunner.java:136) at org.apache.hadoop.hba= se.ipc.RpcExecutor$Handler.run(RpcExecutor.java:324) at org.apache.hadoop.h= base.ipc.RpcExecutor$Handler.run(RpcExecutor.java:304) Caused by: java.lang= .ArrayIndexOutOfBoundsException: 4 at org.apache.hadoop.hbase.ArrayBackedTa= g.(ArrayBackedTag.java:97) at org.apache.hadoop.hbase.CellUtil$5.next= (CellUtil.java:1107) at org.apache.hadoop.hbase.CellUtil$5.next(CellUtil.ja= va:1094) at org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatc= her.isCellTTLExpired(ScanQueryMatcher.java:153) at org.apache.hadoop.hbase.= regionserver.querymatcher.ScanQueryMatcher.preCheck(ScanQueryMatcher.java:1= 98) at org.apache.hadoop.hbase.regionserver.querymatcher.NormalUserScanQuer= yMatcher.match(NormalUserScanQueryMatcher.java:64) at org.apache.hadoop.hba= se.regionserver.StoreScanner.next(StoreScanner.java:578) > {code} > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005)