phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "jaanai (JIRA)" <>
Subject [jira] [Updated] (PHOENIX-5226) The format of VIEW_MODIFIED_PROPERTY_BYTES is incorrect as a tag of the cell
Date Thu, 04 Apr 2019 02:24:00 GMT


jaanai updated PHOENIX-5226:
    Attachment: PHOENIX-5226-master.patch

>  The format of VIEW_MODIFIED_PROPERTY_BYTES is incorrect as a tag of the cell
> -----------------------------------------------------------------------------
>                 Key: PHOENIX-5226
>                 URL:
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.15.0, 5.1.0
>            Reporter: jaanai
>            Assignee: jaanai
>            Priority: Critical
>             Fix For: 4.15.0, 5.1.0
>         Attachments: PHOENIX-5226-master.patch, 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 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 KeyValue 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: <code><tagslength><tagsbytes></code>.
>  * <code>tagslength</code> maximum is <code>Short.MAX_SIZE</code>.
The <code>tagsbytes</code>
>  * contain one or more tags where as each tag is of the form
>  * <code><taglength><tagtype><tagbytes></code>. <code>tagtype</code>
is one byte
>  * and <code>taglength</code> maximum is <code>Short.MAX_SIZE</code>
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
> {code:java}
> 0: jdbc:phoenix:thin:url=http://localhost> drop view "test_2"; Error: Error -1 (00000)
: Error while executing SQL "drop view "test_2"": Remote driver error: RuntimeException: org.apache.phoenix.exception.PhoenixIOException:
org.apache.hadoop.hbase.DoNotRetryIOException: test_2: 4 at org.apache.phoenix.util.ServerUtil.createIOException(
at org.apache.phoenix.coprocessor.MetaDataEndpointImpl.dropTable(
at org.apache.phoenix.coprocessor.generated.MetaDataProtos$MetaDataService.callMethod(
at org.apache.hadoop.hbase.regionserver.HRegion.execService( at org.apache.hadoop.hbase.regionserver.RSRpcServices.execServiceOnRegion(
at org.apache.hadoop.hbase.regionserver.RSRpcServices.execService(
at org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(
at at
at org.apache.hadoop.hbase.ipc.RpcExecutor$ at org.apache.hadoop.hbase.ipc.RpcExecutor$
Caused by: java.lang.ArrayIndexOutOfBoundsException: 4 at org.apache.hadoop.hbase.ArrayBackedTag.<init>(
at org.apache.hadoop.hbase.CellUtil$ at org.apache.hadoop.hbase.CellUtil$
at org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.isCellTTLExpired(
at org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher.preCheck(
at org.apache.hadoop.hbase.regionserver.querymatcher.NormalUserScanQueryMatcher.match(
> {code}

This message was sent by Atlassian JIRA

View raw message