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 CE1B99A28 for ; Fri, 9 Mar 2012 22:51:18 +0000 (UTC) Received: (qmail 70518 invoked by uid 500); 9 Mar 2012 22:51:18 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 70483 invoked by uid 500); 9 Mar 2012 22:51:18 -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 70475 invoked by uid 99); 9 Mar 2012 22:51:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 22:51:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Mar 2012 22:51:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 65AF317A2E for ; Fri, 9 Mar 2012 22:50:57 +0000 (UTC) Date: Fri, 9 Mar 2012 22:50:57 +0000 (UTC) From: "stack (Updated) (JIRA)" To: issues@hbase.apache.org Message-ID: <1293929624.46021.1331333457417.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <818138042.30848.1331081517522.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HBASE-5535) Make the functions in task monitor synchronized MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HBASE-5535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] stack updated HBASE-5535: ------------------------- Resolution: Fixed Fix Version/s: 0.94.0 Hadoop Flags: Reviewed Status: Resolved (was: Patch Available) Thanks for the patch Liyin. Committed 0.94 and trunk. Will include in 0.92.2. > Make the functions in task monitor synchronized > ----------------------------------------------- > > Key: HBASE-5535 > URL: https://issues.apache.org/jira/browse/HBASE-5535 > Project: HBase > Issue Type: Bug > Reporter: Liyin Tang > Assignee: Liyin Tang > Fix For: 0.94.0 > > Attachments: HBASE-5535-Make-the-functions-in-task-monitor-synchr-2012-03-08_16_33_42.patch > > > There are some potential race condition in the task monitor. So update the functions in task monitor to be synchronized. > The example of the problem caused by the race condition: > ERROR org.apache.hadoop.hbase.regionserver.MemStoreFlusher: Cache flush failed for region > java.lang.IndexOutOfBoundsException: Index: 1745, Size: 1744 > at java.util.ArrayList.add(ArrayList.java:367) > at java.util.SubList.add(AbstractList.java:633) > at java.util.SubList.add(AbstractList.java:633) > at java.util.SubList.add(AbstractList.java:633) > at java.util.SubList.add(AbstractList.java:633) > at java.util.SubList.add(AbstractList.java:633) > at java.util.AbstractList.add(AbstractList.java:91) > at org.apache.hadoop.hbase.monitoring.TaskMonitor.createStatus(TaskMonitor.java:74) > at org.apache.hadoop.hbase.regionserver.HRegion.flushcache(HRegion.java:1139) > at org.apache.hadoop.hbase.regionserver.MemStoreFlusher.flushRegion(MemStoreFlusher.java:260) > at org.apache.hadoop.hbase.regionserver.MemStoreFlusher.flushRegion(MemStoreFlusher.java:234) > at org.apache.hadoop.hbase.regionserver.MemStoreFlusher.run(MemStoreFlusher.java:146) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira