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 C27CA110A8 for ; Mon, 4 Aug 2014 20:08:12 +0000 (UTC) Received: (qmail 50477 invoked by uid 500); 4 Aug 2014 20:08:12 -0000 Delivered-To: apmail-hbase-issues-archive@hbase.apache.org Received: (qmail 50429 invoked by uid 500); 4 Aug 2014 20:08: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 50417 invoked by uid 99); 4 Aug 2014 20:08:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Aug 2014 20:08:12 +0000 Date: Mon, 4 Aug 2014 20:08:12 +0000 (UTC) From: "Jimmy Xiang (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-11659) Region state RPC call is not idempotent 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-11659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085204#comment-14085204 ] Jimmy Xiang commented on HBASE-11659: ------------------------------------- bq. checking if the region is opened on right region server is enough? Good question. I am not sure. For now, I don't see any problem with that. > Region state RPC call is not idempotent > --------------------------------------- > > Key: HBASE-11659 > URL: https://issues.apache.org/jira/browse/HBASE-11659 > Project: HBase > Issue Type: Bug > Components: Region Assignment > Reporter: Virag Kothari > Assignee: Virag Kothari > Attachments: HBASE-11659.patch > > > Here is the scenario on 0.98 with zk-less assignment > The master gets an OPEN RPC call from region server. > So, it moves the region state from PENDING_OPEN to OPEN. > But, the call timeouts on the region server and region server retries sending the OPEN call. However, now the master throws an Exception saying the region is not PENDING_OPEN. So, the region servers aborts the region on receiving that exception and sends FAILED_OPEN to master. But the master cannot change its state from FAILED_OPEN to OPEN, so eventually the master keeps the state as OPEN while the actual region is no longer open on region server. > The master should not throw an exception on receiving OPEN RPC calls multiple times. -- This message was sent by Atlassian JIRA (v6.2#6252)