CalvinKirs commented on a change in pull request #3427:
URL: 
https://github.com/apache/incubator-dolphinscheduler/pull/3427#discussion_r467811648



##########
File path: 
dolphinscheduler-remote/src/main/java/org/apache/dolphinscheduler/remote/codec/NettyDecoder.java
##########
@@ -55,15 +55,18 @@ protected void decode(ChannelHandlerContext ctx, ByteBuf 
in, List<Object> out) t
             case MAGIC:
                 checkMagic(in.readByte());
                 checkpoint(State.COMMAND);
+                break;
             case COMMAND:
                 commandHeader.setType(in.readByte());
                 checkpoint(State.OPAQUE);
+                break;
             case OPAQUE:
                 commandHeader.setOpaque(in.readLong());
                 checkpoint(State.BODY_LENGTH);
             case BODY_LENGTH:
                 commandHeader.setBodyLength(in.readInt());
                 checkpoint(State.BODY);
+                break;

Review comment:
       You cannot directly break here, please refer to #3035 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to