Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-2897

Thrift proxy in Accumulo throws out of memory error on malformed request

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 1.6.0
    • Fix Version/s: None
    • Component/s: proxy
    • Environment:

      Oracle Java 1.7.0_60, Accumulo 1.6, Hadoop 2.2 Zookeeper on Centos

      Description

      Thrift libraries have a well known Jira problem where malformed requests (e.g. curl) throw an Out of memory error on malformed requests. Length limit checks (possibly JIRA THRIFT-2572 issue Add string/collection length limit checks (from C++) to java.)

      This is likely TBinaryProtocol.

      ----------------------------------------------------------------------
      Replicating the issue:
      1) start Accumulo proxy "./accumulo proxy -p ../proxy/proxy.properties
      2) curl -get localhost:proxyport "Hi"

      Proxy will crash with OOM.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                howardj Joseph L Howard
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 120h
                  120h
                  Remaining:
                  Remaining Estimate - 120h
                  120h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified