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 7092C4355 for ; Tue, 5 Jul 2011 17:51:41 +0000 (UTC) Received: (qmail 32433 invoked by uid 500); 5 Jul 2011 17:51:41 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 32394 invoked by uid 500); 5 Jul 2011 17:51:40 -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 32382 invoked by uid 99); 5 Jul 2011 17:51:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2011 17:51:40 +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; Tue, 05 Jul 2011 17:51:38 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C85A244D9A for ; Tue, 5 Jul 2011 17:51:16 +0000 (UTC) Date: Tue, 5 Jul 2011 17:51:16 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: <1386911854.1279.1309888276817.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <179266255.2817.1309836442330.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HBASE-4060) Making region assignment more robust 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-4060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060036#comment-13060036 ] Ted Yu commented on HBASE-4060: ------------------------------- On top of HBASE-3789, we should consider the following two remedies for 0.90 branch: 1. how to speed up enabling table with large number of regions (12K in Eran's case) 2. AM.TimeoutMonitor.chore() may reassign a region which just completed OpenedRegionHandler.process() For #2 above, better coordination between OpenedRegionHandler and AM.TimeoutMonitor should be devised. > Making region assignment more robust > ------------------------------------ > > Key: HBASE-4060 > URL: https://issues.apache.org/jira/browse/HBASE-4060 > Project: HBase > Issue Type: Bug > Reporter: Ted Yu > Fix For: 0.92.0 > > > From Eran Kutner: > My concern is that the region allocation process seems to rely too much on > timing considerations and doesn't seem to take enough measures to guarantee > conflicts do not occur. I understand that in a distributed environment, when > you don't get a timely response from a remote machine you can't know for > sure if it did or did not receive the request, however there are things that > can be done to mitigate this and reduce the conflict time significantly. For > example, when I run dbck it knows that some regions are multiply assigned, > the master could do the same and try to resolve the conflict. Another > approach would be to handle late responses, even if the response from the > remote machine arrives after it was assumed to be dead the master should > have enough information to know it had created a conflict by assigning the > region to another server. An even better solution, I think, is for the RS to > periodically test that it is indeed the rightful owner of every region it > holds and relinquish control over the region if it's not. > Obviously a state where two RSs hold the same region is pathological and can > lead to data loss, as demonstrated in my case. The system should be able to > actively protect itself against such a scenario. It probably doesn't need > saying but there is really nothing worse for a data storage system than data > loss. > In my case the problem didn't happen in the initial phase but after > disabling and enabling a table with about 12K regions. > For more background information, see 'Errors after major compaction' discussion on user@hbase.apache.org -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira