You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jay Kreps (JIRA)" <ji...@apache.org> on 2011/08/14 09:32:27 UTC
[jira] [Created] (KAFKA-99) SocketServer.scala does not enforce a
maximum request size
SocketServer.scala does not enforce a maximum request size
----------------------------------------------------------
Key: KAFKA-99
URL: https://issues.apache.org/jira/browse/KAFKA-99
Project: Kafka
Issue Type: Bug
Reporter: Jay Kreps
Assignee: Jay Kreps
Attachments: kafka-socket-server-max-request.diff
The socket server should enforce a max request size to avoid running out of memory if a large request is sent. I see code in BoundedByteBufferReceive and in KafkaConfig to specify this, but it doesn't seem to be getting used. I added this in and added a stand-alone test for the socket server to start handling some of this stuff.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (KAFKA-99) SocketServer.scala does not enforce a
maximum request size
Posted by "Jay Kreps (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Kreps updated KAFKA-99:
---------------------------
Attachment: kafka-socket-server-max-request.diff
> SocketServer.scala does not enforce a maximum request size
> ----------------------------------------------------------
>
> Key: KAFKA-99
> URL: https://issues.apache.org/jira/browse/KAFKA-99
> Project: Kafka
> Issue Type: Bug
> Reporter: Jay Kreps
> Assignee: Jay Kreps
> Attachments: kafka-socket-server-max-request.diff
>
>
> The socket server should enforce a max request size to avoid running out of memory if a large request is sent. I see code in BoundedByteBufferReceive and in KafkaConfig to specify this, but it doesn't seem to be getting used. I added this in and added a stand-alone test for the socket server to start handling some of this stuff.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KAFKA-99) SocketServer.scala does not enforce a
maximum request size
Posted by "Jun Rao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13088050#comment-13088050 ]
Jun Rao commented on KAFKA-99:
------------------------------
+1
> SocketServer.scala does not enforce a maximum request size
> ----------------------------------------------------------
>
> Key: KAFKA-99
> URL: https://issues.apache.org/jira/browse/KAFKA-99
> Project: Kafka
> Issue Type: Bug
> Reporter: Jay Kreps
> Assignee: Jay Kreps
> Attachments: kafka-socket-server-max-request-v2.diff, kafka-socket-server-max-request.diff
>
>
> The socket server should enforce a max request size to avoid running out of memory if a large request is sent. I see code in BoundedByteBufferReceive and in KafkaConfig to specify this, but it doesn't seem to be getting used. I added this in and added a stand-alone test for the socket server to start handling some of this stuff.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (KAFKA-99) SocketServer.scala does not enforce a
maximum request size
Posted by "Jay Kreps (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Kreps updated KAFKA-99:
---------------------------
Attachment: kafka-socket-server-max-request-v2.diff
This includes the stuff i dropped from my original patch.
> SocketServer.scala does not enforce a maximum request size
> ----------------------------------------------------------
>
> Key: KAFKA-99
> URL: https://issues.apache.org/jira/browse/KAFKA-99
> Project: Kafka
> Issue Type: Bug
> Reporter: Jay Kreps
> Assignee: Jay Kreps
> Attachments: kafka-socket-server-max-request-v2.diff, kafka-socket-server-max-request.diff
>
>
> The socket server should enforce a max request size to avoid running out of memory if a large request is sent. I see code in BoundedByteBufferReceive and in KafkaConfig to specify this, but it doesn't seem to be getting used. I added this in and added a stand-alone test for the socket server to start handling some of this stuff.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KAFKA-99) SocketServer.scala does not enforce a
maximum request size
Posted by "Jun Rao (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085306#comment-13085306 ]
Jun Rao commented on KAFKA-99:
------------------------------
Shouldn't we instantiate SocketServer with the max size from KafkaConfig? Other than that, the patch looks good.
> SocketServer.scala does not enforce a maximum request size
> ----------------------------------------------------------
>
> Key: KAFKA-99
> URL: https://issues.apache.org/jira/browse/KAFKA-99
> Project: Kafka
> Issue Type: Bug
> Reporter: Jay Kreps
> Assignee: Jay Kreps
> Attachments: kafka-socket-server-max-request.diff
>
>
> The socket server should enforce a max request size to avoid running out of memory if a large request is sent. I see code in BoundedByteBufferReceive and in KafkaConfig to specify this, but it doesn't seem to be getting used. I added this in and added a stand-alone test for the socket server to start handling some of this stuff.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (KAFKA-99) SocketServer.scala does not enforce a
maximum request size
Posted by "Jay Kreps (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Kreps updated KAFKA-99:
---------------------------
Status: Patch Available (was: Open)
> SocketServer.scala does not enforce a maximum request size
> ----------------------------------------------------------
>
> Key: KAFKA-99
> URL: https://issues.apache.org/jira/browse/KAFKA-99
> Project: Kafka
> Issue Type: Bug
> Reporter: Jay Kreps
> Assignee: Jay Kreps
> Attachments: kafka-socket-server-max-request.diff
>
>
> The socket server should enforce a max request size to avoid running out of memory if a large request is sent. I see code in BoundedByteBufferReceive and in KafkaConfig to specify this, but it doesn't seem to be getting used. I added this in and added a stand-alone test for the socket server to start handling some of this stuff.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (KAFKA-99) SocketServer.scala does not enforce a
maximum request size
Posted by "Jay Kreps (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085342#comment-13085342 ]
Jay Kreps commented on KAFKA-99:
--------------------------------
Wups, somehow that got dropped from my patch, but should have been there. Here is the full patch.
> SocketServer.scala does not enforce a maximum request size
> ----------------------------------------------------------
>
> Key: KAFKA-99
> URL: https://issues.apache.org/jira/browse/KAFKA-99
> Project: Kafka
> Issue Type: Bug
> Reporter: Jay Kreps
> Assignee: Jay Kreps
> Attachments: kafka-socket-server-max-request.diff
>
>
> The socket server should enforce a max request size to avoid running out of memory if a large request is sent. I see code in BoundedByteBufferReceive and in KafkaConfig to specify this, but it doesn't seem to be getting used. I added this in and added a stand-alone test for the socket server to start handling some of this stuff.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (KAFKA-99) SocketServer.scala does not enforce a
maximum request size
Posted by "Jay Kreps (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/KAFKA-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jay Kreps updated KAFKA-99:
---------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
> SocketServer.scala does not enforce a maximum request size
> ----------------------------------------------------------
>
> Key: KAFKA-99
> URL: https://issues.apache.org/jira/browse/KAFKA-99
> Project: Kafka
> Issue Type: Bug
> Reporter: Jay Kreps
> Assignee: Jay Kreps
> Attachments: kafka-socket-server-max-request-v2.diff, kafka-socket-server-max-request.diff
>
>
> The socket server should enforce a max request size to avoid running out of memory if a large request is sent. I see code in BoundedByteBufferReceive and in KafkaConfig to specify this, but it doesn't seem to be getting used. I added this in and added a stand-alone test for the socket server to start handling some of this stuff.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira