[
https://issues.apache.org/jira/browse/PHOENIX-3764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16076974#comment-16076974
]
Geoffrey Jacoby commented on PHOENIX-3764:
------------------------------------------
[~mujtabachohan] - I added a test to LocalIndexIT locally using the exact table
and index DDL here and I'm not able to reproduce this error on the master
branch. Do you happen to remember if there are additional circumstances that
created it? (For example, was it just index creation that caused the protobuf
to deserialize improperly or did you also need to insert data into the table
either before or after creating the local index?)
> Local Index - InvalidProtocolBufferException on creating local index
> --------------------------------------------------------------------
>
> Key: PHOENIX-3764
> URL: https://issues.apache.org/jira/browse/PHOENIX-3764
> Project: Phoenix
> Issue Type: Bug
> Affects Versions: 4.10.0
> Reporter: Mujtaba Chohan
> Assignee: Rajeshbabu Chintaguntla
>
> DDLs
> {noformat}
> CREATE TABLE IF NOT EXISTS T (PKA CHAR(15) NOT NULL, PKF CHAR(3) NOT NULL,
> PKP CHAR(15) NOT NULL, CRD DATE NOT NULL, EHI CHAR(15) NOT NULL, FID
> CHAR(15), CREATED_BY_ID VARCHAR,
> FH VARCHAR, DT VARCHAR, OS VARCHAR, NS VARCHAR, OFN VARCHAR CONSTRAINT
> PK PRIMARY KEY ( PKA, PKF, PKP, CRD DESC, EHI ))
> VERSIONS=1,IMMUTABLE_ROWS=true;
> CREATE LOCAL INDEX IF NOT EXISTS TIDX ON T (PKF, CRD, PKP, EHI)
> INCLUDE (FID, CREATED_BY_ID, FH, DT, OS, NS, OFN);
> {noformat}
> Exception
> {noformat}
> Caused by: java.lang.RuntimeException:
> com.google.protobuf.InvalidProtocolBufferException: While parsing a protocol
> message, the input ended unexpectedly in the middle of a field. This could
> mean either than the input has been truncated or that an embedded message
> misreported its own length.
> at
> org.apache.phoenix.index.IndexMaintainer.deserialize(IndexMaintainer.java:302)
> at
> org.apache.phoenix.index.IndexMaintainer.deserialize(IndexMaintainer.java:274)
> at
> org.apache.phoenix.coprocessor.UngroupedAggregateRegionObserver.doPostScannerOpen(UngroupedAggregateRegionObserver.java:375)
> at
> org.apache.phoenix.coprocessor.BaseScannerRegionObserver$RegionScannerHolder.overrideDelegate(BaseScannerRegionObserver.java:236)
> ... 8 more
> Caused by: com.google.protobuf.InvalidProtocolBufferException: While parsing
> a protocol message, the input ended unexpectedly in the middle of a field.
> This could mean either than the input has been truncated or that an embedded
> message misreported its own length.
> at
> com.google.protobuf.InvalidProtocolBufferException.truncatedMessage(InvalidProtocolBufferException.java:70)
> at
> com.google.protobuf.CodedInputStream.refillBuffer(CodedInputStream.java:728)
> at
> com.google.protobuf.CodedInputStream.readRawByte(CodedInputStream.java:769)
> at
> com.google.protobuf.CodedInputStream.readRawVarint32(CodedInputStream.java:378)
> at
> com.google.protobuf.CodedInputStream.readTag(CodedInputStream.java:104)
> at
> org.apache.phoenix.coprocessor.generated.ServerCachingProtos$IndexMaintainer.<init>(ServerCachingProtos.java:2200)
> at
> org.apache.phoenix.coprocessor.generated.ServerCachingProtos$IndexMaintainer.<init>(ServerCachingProtos.java:2164)
> at
> org.apache.phoenix.coprocessor.generated.ServerCachingProtos$IndexMaintainer$1.parsePartialFrom(ServerCachingProtos.java:2398)
> at
> org.apache.phoenix.coprocessor.generated.ServerCachingProtos$IndexMaintainer$1.parsePartialFrom(ServerCachingProtos.java:2393)
> at
> com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:141)
> at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:176)
> at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:188)
> at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:193)
> at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
> at
> org.apache.phoenix.coprocessor.generated.ServerCachingProtos$IndexMaintainer.parseFrom(ServerCachingProtos.java:3345)
> at
> org.apache.phoenix.index.IndexMaintainer.deserialize(IndexMaintainer.java:293)
> ... 11 more (state=08000,code=101)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)