[
https://issues.apache.org/jira/browse/PHOENIX-3764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16077140#comment-16077140
]
Geoffrey Jacoby commented on PHOENIX-3764:
------------------------------------------
Ran the same experiment on 4.x-HBase-0.98 and 4.x-HBase-1.2 and also couldn't
reproduce. (Note this is still all endtoend tests, not using a standalone
cluster) Also wondering if this was perhaps a cross-version problem between 4.9
and 4.10.
> 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)