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 818D4100EF for ; Thu, 10 Apr 2014 21:30:24 +0000 (UTC) Received: (qmail 43322 invoked by uid 500); 10 Apr 2014 21:30:23 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 43002 invoked by uid 500); 10 Apr 2014 21:30:22 -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 42926 invoked by uid 99); 10 Apr 2014 21:30:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2014 21:30:19 +0000 Date: Thu, 10 Apr 2014 21:30:19 +0000 (UTC) From: "Mikhail Antonov (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-10915) Decouple region closing from ZooKeeper 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-10915?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13965874#comment-13965874 ] Mikhail Antonov commented on HBASE-10915: ----------------------------------------- I guess I shall give some explanation as to why the CloseRegionDetails are being passed around. The thing is that the instance of handler class is created for each task being submitted to executors, and relevant fields are carried in the object fields. Yet for consensus, I don't want to create new consensus for each Executors tasks submitted, yet I'd prefer it to be stateless. So by passing around the encapsulated details object we can avoid keeping much state in the consensus (keeping in mind that for the Paxos case, or Raft case, consensus class would encapsulate the details which are now kept in ZooKeeper in in memory data structures). > Decouple region closing from ZooKeeper > -------------------------------------- > > Key: HBASE-10915 > URL: https://issues.apache.org/jira/browse/HBASE-10915 > Project: HBase > Issue Type: Sub-task > Components: Zookeeper > Reporter: Mikhail Antonov > Assignee: Mikhail Antonov > Attachments: HBASE-10915.patch, HBASE-10915.patch, HBASE-10915.patch, HBASE-10915.patch, HBASE-10915.patch, HBASE-10915.patch > > > Decouple CloseRegionHandler class and code using it (HRegionServer, ProtobufUtil) from ZK API. -- This message was sent by Atlassian JIRA (v6.2#6252)