git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (FLINK-9500) FileUploadHandler does not handle EmptyLastHttpContent


Chesnay Schepler created FLINK-9500:
---------------------------------------

             Summary: FileUploadHandler does not handle EmptyLastHttpContent
                 Key: FLINK-9500
                 URL: https://issues.apache.org/jira/browse/FLINK-9500
             Project: Flink
          Issue Type: Bug
          Components: Client, REST
    Affects Versions: 1.5.0, 1.6.0
            Reporter: Chesnay Schepler
            Assignee: Chesnay Schepler
             Fix For: 1.6.0, 1.5.1


The FileUploadHandler does not properly handle {{EmptyLastHttpContent}} messages. When passing these to a decoder an exception is thrown.

We should either catch the exception or just don't pass such a message in the first place.

{code}
018-06-01 16:05:46,514 WARN org.apache.flink.runtime.dispatcher.DispatcherRestEndpoint - Unhandled exception org.apache.flink.shaded.netty4.io.netty.handler.codec.http.multipart.HttpPostRequestDecoder$EndOfDataDecoderException at org.apache.flink.shaded.netty4.io.netty.handler.codec.http.multipart.HttpPostMultipartRequestDecoder.hasNext(HttpPostMultipartRequestDecoder.java:366) at org.apache.flink.shaded.netty4.io.netty.handler.codec.http.multipart.HttpPostRequestDecoder.hasNext(HttpPostRequestDecoder.java:241) at org.apache.flink.runtime.rest.FileUploadHandler.channelRead0(FileUploadHandler.java:92) at org.apache.flink.runtime.rest.FileUploadHandler.channelRead0(FileUploadHandler.java:51) at org.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at org.apache.flink.shaded.netty4.io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(A
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-flink-development/msg07475.html on line 97
Call Stack
#TimeMemoryFunctionLocation
10.0008358376{main}( ).../msg07475.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-flink-development/msg07475.html on line 97
Call Stack
#TimeMemoryFunctionLocation
10.0008358376{main}( ).../msg07475.html:0