You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/06/07 07:47:46 UTC

[GitHub] [flink] zentol commented on a change in pull request #8605: [FLINK-9363] bump up flink-shaded dependencies version to 7.0

zentol commented on a change in pull request #8605: [FLINK-9363] bump up flink-shaded dependencies version to 7.0
URL: https://github.com/apache/flink/pull/8605#discussion_r291484799
 
 

 ##########
 File path: flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/AbstractHandler.java
 ##########
 @@ -123,7 +124,7 @@ protected void respondAsLeader(ChannelHandlerContext ctx, RoutedRequest routedRe
 			} else {
 				try {
 					ByteBufInputStream in = new ByteBufInputStream(msgContent);
-					request = MAPPER.readValue(in, untypedResponseMessageHeaders.getRequestClass());
+					request = MAPPER.readValue((InputStream) in, untypedResponseMessageHeaders.getRequestClass());
 
 Review comment:
   you can solve this in a nicer way by changing the line above to `InputStream in = new ByteBufInputStream(msgContent);`

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services