accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (ACCUMULO-2658) Thrift Proxy crashes with OOM on bad input
Date Thu, 26 Jun 2014 22:39:25 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-2658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Josh Elser reassigned ACCUMULO-2658:
------------------------------------

    Assignee: Josh Elser

> Thrift Proxy crashes with OOM on bad input
> ------------------------------------------
>
>                 Key: ACCUMULO-2658
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2658
>             Project: Accumulo
>          Issue Type: Bug
>          Components: proxy
>    Affects Versions: 1.5.1
>            Reporter: Russ Weeks
>            Assignee: Josh Elser
>             Fix For: 1.5.2, 1.6.1, 1.7.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The proxy server doesn't benefit from the fix for ACCUMULO-2360 because it doesn't use
the TServerUtils class to set up the thrift server.
> The smallest fix is really easy: just add the line:
> {code}
> args.maxReadBufferBytes = maxFrameSize; 
> {code}
> to o.a.a.proxy.Proxy.createProxyServer.
> I guess a more comprehensive fix would be to convert Proxy to use TServerUtils, but that's
a little beyond me at this point.
> Steps to reproduce:
> 1. Start your proxy server
> 2. telnet localhost 42424
> 3. Type "stat", press enter.
> Expected Behaviour:
> * The thrift server stays up and ignores the invalid input
> Actual Behaviour:
> * The thrift server seems to interpret the text string as a buffer size and immediately
crashes with this error written to the log file:
> {code}
> #
> # java.lang.OutOfMemoryError: Java heap space
> # -XX:OnOutOfMemoryError="kill -9 %p"
> #   Executing /bin/sh -c "kill -9 13396"...
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message