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

BlockedOutputStream can hit a StackOverflowError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • None

    Description

      This issue mostly came up after a resolution to ACCUMULO-2668 that allows a byte[] to be passed directly to the underlying stream from the NoFlushOutputStream.

      The problem appears to be due to the BlockedOutputStream.write(byte[], int, int) implementation that recursively writes out blocks/buffers out. When the stream is passed a large mutation (128MB was sufficient to trigger the error for me), this will cause a StackOverflowError.

      This is appears to be specifically with encryption at rest turned on.

      A simple fix would be to unroll the recursion.

      Attachments

        Activity

          People

            vines John Vines
            parkjsung Jonathan Park
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: