Return-Path: Delivered-To: apmail-hbase-issues-archive@www.apache.org Received: (qmail 82939 invoked from network); 23 Jul 2010 23:40:12 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Jul 2010 23:40:12 -0000 Received: (qmail 62066 invoked by uid 500); 23 Jul 2010 23:40:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 62009 invoked by uid 500); 23 Jul 2010 23:40:12 -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 61998 invoked by uid 99); 23 Jul 2010 23:40:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 23:40:12 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Jul 2010 23:40:11 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6NNdpUB023217 for ; Fri, 23 Jul 2010 23:39:51 GMT Message-ID: <13688270.561881279928391570.JavaMail.jira@thor> Date: Fri, 23 Jul 2010 19:39:51 -0400 (EDT) From: "HBase Review Board (JIRA)" To: issues@hbase.apache.org Subject: [jira] Commented: (HBASE-2697) Implement new open/close logic in handlers and stop using heartbeats for open/close messages In-Reply-To: <20490620.31471276027331661.JavaMail.jira@thor> 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-2697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891867#action_12891867 ] HBase Review Board commented on HBASE-2697: ------------------------------------------- Message from: "Jonathan Gray" ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://review.hbase.org/r/382/ ----------------------------------------------------------- Review request for hbase, stack, Jean-Daniel Cryans, Karthik Ranganathan, and Kannan Muthukkaruppan. Summary ------- This method implements all the zookeeper methods needed for this last part of the doc posted in HBASE-2692 (definition of valid creation/transitions for unassigned znodes): MASTER 1. Master creates an unassigned node as OFFLINE. - Cluster startup and table enabling. 2. Master forces an existing unassigned node to OFFLINE. - RegionServer failure. - Allows transitions from all states to OFFLINE. 3. Master deletes an unassigned node that was in a OPENED state. - Normal region transitions. Besides cluster startup, no other deletions of unassigned nodes is allowed. 4. Master deletes all unassigned nodes regardless of state. - Cluster startup before any assignment happens. REGIONSERVER 1. RegionServer creates an unassigned node as CLOSING. - All region closes will do this in response to a CLOSE RPC from Master. - A node can never be transitioned to CLOSING, only created. 2. RegionServer transitions an unassigned node from CLOSING to CLOSED. - Normal region closes. CAS operation. 3. RegionServer transitions an unassigned node from OFFLINE to OPENING. - All region opens will do this in response to an OPEN RPC from the Master. - Normal region opens. CAS operation. 4. RegionServer transitions an unassigned node from OPENING to OPENED. - Normal region opens. CAS operation. This addresses bug HBASE-2697. http://issues.apache.org/jira/browse/HBASE-2697 Diffs ----- branches/0.90_master_rewrite/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKAssign.java PRE-CREATION Diff: http://review.hbase.org/r/382/diff Testing ------- Unit test to come. Just putting up since there have been some recent issues with multiple transitions and stuff, wanted to show what the new stuff looks like. Thanks, Jonathan > Implement new open/close logic in handlers and stop using heartbeats for open/close messages > -------------------------------------------------------------------------------------------- > > Key: HBASE-2697 > URL: https://issues.apache.org/jira/browse/HBASE-2697 > Project: HBase > Issue Type: Sub-task > Components: ipc, master, regionserver > Reporter: Jonathan Gray > Assignee: Jonathan Gray > Priority: Critical > Fix For: 0.90.0 > > > This issue is doing the meat of what HBASE-2485 is about and continues what was started in HBASE-2694 after some code cleanup to make life easier. > This deals with no longer piggybacking messages from Master to RegionServers on heartbeat responses and instead sending direct unsolicited messages. This also deals with moving the open/close logic fully into handlers and removing the existing open/close code on both the RS and M sides. There may also be some changes to the master in-memory state of regions in transition. The new load balancer will probably be introduced with this issue but not fully integrated yet. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.