You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ratis.apache.org by "Lokesh Jain (JIRA)" <ji...@apache.org> on 2019/03/01 17:54:00 UTC
[jira] [Commented] (RATIS-345) Watch requests should bypass sliding
window
[ https://issues.apache.org/jira/browse/RATIS-345?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16781925#comment-16781925 ]
Lokesh Jain commented on RATIS-345:
-----------------------------------
[~szetszwo] Thanks for updating the patch! The changes look good to me. TestWatchRequestWithGrpc is failing intermittently. I have uploaded a file with the logs. I can see following exception in the logs.
{code:java}
Mar 01, 2019 11:03:17 PM org.apache.ratis.thirdparty.io.grpc.internal.SerializingExecutor run
SEVERE: Exception while executing runnable org.apache.ratis.thirdparty.io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1MessagesAvailable@304b85ee
org.apache.ratis.thirdparty.io.grpc.StatusRuntimeException: INTERNAL: Invalid protobuf byte sequence
at org.apache.ratis.thirdparty.io.grpc.Status.asRuntimeException(Status.java:517)
at org.apache.ratis.thirdparty.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller.parse(ProtoLiteUtils.java:218)
at org.apache.ratis.thirdparty.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller.parse(ProtoLiteUtils.java:118)
at org.apache.ratis.thirdparty.io.grpc.MethodDescriptor.parseRequest(MethodDescriptor.java:289)
at org.apache.ratis.thirdparty.io.grpc.internal.ServerCallImpl$ServerStreamListenerImpl.messagesAvailable(ServerCallImpl.java:263)
at org.apache.ratis.thirdparty.io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener$1MessagesAvailable.runInContext(ServerImpl.java:686)
at org.apache.ratis.thirdparty.io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at org.apache.ratis.thirdparty.io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).
at org.apache.ratis.thirdparty.com.google.protobuf.InvalidProtocolBufferException.invalidTag(InvalidProtocolBufferException.java:105)
at org.apache.ratis.thirdparty.com.google.protobuf.CodedInputStream$ArrayDecoder.readTag(CodedInputStream.java:646)
at org.apache.ratis.proto.RaftProtos$RaftClientRequestProto.<init>(RaftProtos.java:19964)
at org.apache.ratis.proto.RaftProtos$RaftClientRequestProto.<init>(RaftProtos.java:19933)
at org.apache.ratis.proto.RaftProtos$RaftClientRequestProto$1.parsePartialFrom(RaftProtos.java:21545)
at org.apache.ratis.proto.RaftProtos$RaftClientRequestProto$1.parsePartialFrom(RaftProtos.java:21540)
at org.apache.ratis.thirdparty.com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:91)
at org.apache.ratis.thirdparty.com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:49)
at org.apache.ratis.thirdparty.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller.parseFrom(ProtoLiteUtils.java:223)
at org.apache.ratis.thirdparty.io.grpc.protobuf.lite.ProtoLiteUtils$MessageMarshaller.parse(ProtoLiteUtils.java:215)
... 9 more
{code}
> Watch requests should bypass sliding window
> -------------------------------------------
>
> Key: RATIS-345
> URL: https://issues.apache.org/jira/browse/RATIS-345
> Project: Ratis
> Issue Type: Bug
> Components: client, server
> Reporter: Tsz Wo Nicholas Sze
> Assignee: Tsz Wo Nicholas Sze
> Priority: Major
> Attachments: err.txt, r345_20190128.patch, r345_20190130.patch, r345_20190131.patch, r345_20190201.patch, r345_20190202.patch, r345_20190220.patch, r345_20190221.patch, r345_20190225.patch, r345_20190226.patch, r345_20190227.patch, r345_20190227b.patch, r345_20190227c.patch
>
>
> Watch requests are special read-only requests. Once the watch condition is satisfied, it should be returned immediately. It should not wait for the earlier requests, if there are any.
> Currently, the watch requests are put in the sliding window so that it won't return until all earlier requests have been returned.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)