Return-Path: X-Original-To: apmail-hbase-issues-archive@www.apache.org Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1D2E17A38 for ; Fri, 6 Feb 2015 21:28:35 +0000 (UTC) Received: (qmail 17001 invoked by uid 500); 6 Feb 2015 21:28:35 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 16935 invoked by uid 500); 6 Feb 2015 21:28:35 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 16632 invoked by uid 99); 6 Feb 2015 21:28:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Feb 2015 21:28:35 +0000 Date: Fri, 6 Feb 2015 21:28:35 +0000 (UTC) From: "stack (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HBASE-12981) FSHLog: UNEXPECTED java.lang.ArrayIndexOutOfBoundsException: -4 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/HBASE-12981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-12981: -------------------------- Status: Patch Available (was: Open) > FSHLog: UNEXPECTED java.lang.ArrayIndexOutOfBoundsException: -4 > --------------------------------------------------------------- > > Key: HBASE-12981 > URL: https://issues.apache.org/jira/browse/HBASE-12981 > Project: HBase > Issue Type: Bug > Components: wal > Affects Versions: 0.98.10 > Reporter: stack > Assignee: stack > Fix For: 0.98.11 > > Attachments: 12981.0.98.txt > > > A user reported the below. It happens after the RS has been running a while. > 015-01-20 22:33:23,031 ERROR org.apache.hadoop.hbase.regionserver.wal.FSHLog: UNEXPECTED > java.lang.ArrayIndexOutOfBoundsException: -4 > at org.apache.hadoop.hbase.regionserver.wal.FSHLog$AsyncWriter.run(FSHLog.java:1149) > at java.lang.Thread.run(Thread.java:745) > 2015-01-20 22:33:23,035 INFO org.apache.hadoop.hbase.regionserver.wal.FSHLog: regionserver60020-WAL.AsyncWriter exiting > ################## > Similarly on Node 23 - on 12-20-2014 05:13: > 2014-12-20 05:13:40,715 ERROR org.apache.hadoop.hbase.regionserver.wal.FSHLog: UNEXPECTED > java.lang.ArrayIndexOutOfBoundsException: -3 > at org.apache.hadoop.hbase.regionserver.wal.FSHLog$AsyncWriter.run(FSHLog.java:1149) > at java.lang.Thread.run(Thread.java:745) > ################### > Looking in code, I can't see how this could come about other than our write seqid ran over the top of a long (unlikely). I think this a 0.98 issue since 1.0+ is different here. It does: > int index = Math.abs(this.syncRunnerIndex++) % this.syncRunners.length; > I'm going to add logging of the circumstance that produces a negative index and then defense against our using negative indices; there could be more going on in here, more than I can see. -- This message was sent by Atlassian JIRA (v6.3.4#6332)