You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Thomas Tauber-Marshall (Jira)" <ji...@apache.org> on 2020/02/13 19:53:00 UTC

[jira] [Created] (IMPALA-9383) HS2 HTTP server hangs on large chunked requests

Thomas Tauber-Marshall created IMPALA-9383:
----------------------------------------------

             Summary: HS2 HTTP server hangs on large chunked requests
                 Key: IMPALA-9383
                 URL: https://issues.apache.org/jira/browse/IMPALA-9383
             Project: IMPALA
          Issue Type: Bug
            Reporter: Thomas Tauber-Marshall
            Assignee: Thomas Tauber-Marshall


There's a bug in THttpTransport that causes it to hang when sent a large, chunked request.

The issue is that in each call to THttpTransport::read(), it always starts by calling refill() which reads more data off the socket, but for chunked requests each call to read() only processes a single chunk. 

So, if more than one chunk is read off the socket at a time, you can end up with more chunks still needing to be processed but no more data to read off the socket, and the next call to THttpTransport::read() will hang when it calls refill().



--
This message was sent by Atlassian Jira
(v8.3.4#803005)