Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B27A8101E4 for ; Thu, 17 Apr 2014 16:46:21 +0000 (UTC) Received: (qmail 49519 invoked by uid 500); 17 Apr 2014 16:46:20 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 49491 invoked by uid 500); 17 Apr 2014 16:46:19 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 49447 invoked by uid 99); 17 Apr 2014 16:46:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Apr 2014 16:46:17 +0000 Date: Thu, 17 Apr 2014 16:46:17 +0000 (UTC) From: "Sean Busbey (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (ACCUMULO-2671) BlockedOutputStream can hit a StackOverflowError MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973139#comment-13973139 ] Sean Busbey edited comment on ACCUMULO-2671 at 4/17/14 4:46 PM: ---------------------------------------------------------------- Specifically, to work around via increasing the stack size you should alter accumulo-env.sh to add the -Xss flag to the Tablet Server role. For example: {noformat} test -z "$ACCUMULO_TSERVER_OPTS" && export ACCUMULO_TSERVER_OPTS="${POLICY} -Xss1g -Xmx4g -Xms4g -XX:NewSize=500m -XX:MaxNewSize=500m" {noformat} was (Author: busbey): Specifically, to work around via increasing the stack size you should alter accumulo-env.sh to add the -Xss flag to the Tablet Server role. For example: {noformat} test -z "$ACCUMULO_TSERVER_OPTS" && export ACCUMULO_TSERVER_OPTS="${POLICY} -Xmx4g -Xms4g -XX:NewSize=500m -XX:MaxNewSize=500m -Xss1g" {noformat} > BlockedOutputStream can hit a StackOverflowError > ------------------------------------------------ > > Key: ACCUMULO-2671 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2671 > Project: Accumulo > Issue Type: Bug > Affects Versions: 1.6.0 > Reporter: Jonathan Park > Fix For: 1.6.1, 1.7.0 > > > 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. -- This message was sent by Atlassian JIRA (v6.2#6252)