Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id F2639200B59 for ; Mon, 8 Aug 2016 23:03:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id F1145160A91; Mon, 8 Aug 2016 21:03:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6D7AC160A77 for ; Mon, 8 Aug 2016 23:03:22 +0200 (CEST) Received: (qmail 36345 invoked by uid 500); 8 Aug 2016 21:03:20 -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 36237 invoked by uid 99); 8 Aug 2016 21:03:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Aug 2016 21:03:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A14452C0D66 for ; Mon, 8 Aug 2016 21:03:20 +0000 (UTC) Date: Mon, 8 Aug 2016 21:03:20 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (HBASE-16377) ServerName check is ineffective in region_mover.rb MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 08 Aug 2016 21:03:23 -0000 Ted Yu created HBASE-16377: ------------------------------ Summary: ServerName check is ineffective in region_mover.rb Key: HBASE-16377 URL: https://issues.apache.org/jira/browse/HBASE-16377 Project: HBase Issue Type: Bug Affects Versions: 1.1.2 Reporter: Ted Yu Assignee: Ted Yu The following was observed during test of region_mover.rb : {code} 2016-08-08 11:17:05,341|beaver.machine|INFO|352|139926954637120|MainThread|2016-08-08 11:17:05,340 INFO [RubyThread-9: /usr/hdp/current/hbase-client/bin/thread-pool.rb:28] region_mover: Moving region hbase:meta,,1.1588230740 (1 of 14) from xYz.openstacklocal,16020,1470654716593, to server=xYz.openstacklocal,16020,1470654716593 {code} There is check that target server should not be the same as current server: {code} if currentServer and currentServer == servername $LOG.info("Region " + r.getRegionNameAsString() + " (" + counter.to_s + " of " + regions.length.to_s + ") already on target server=" + servername) counter = counter + 1 next end {code} However, the check is not effective. See comparison between object1 and object3: http://www.skorks.com/2009/09/ruby-equality-and-object-comparison/ -- This message was sent by Atlassian JIRA (v6.3.4#6332)