Return-Path: X-Original-To: apmail-hbase-dev-archive@www.apache.org Delivered-To: apmail-hbase-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 53A99106C8 for ; Wed, 6 Nov 2013 14:12:45 +0000 (UTC) Received: (qmail 17449 invoked by uid 500); 6 Nov 2013 14:12:29 -0000 Delivered-To: apmail-hbase-dev-archive@hbase.apache.org Received: (qmail 17187 invoked by uid 500); 6 Nov 2013 14:12:11 -0000 Mailing-List: contact dev-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hbase.apache.org Delivered-To: mailing list dev@hbase.apache.org Received: (qmail 17172 invoked by uid 99); 6 Nov 2013 14:12:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 14:12:07 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kashifjs@huawei.com designates 119.145.14.64 as permitted sender) Received: from [119.145.14.64] (HELO szxga01-in.huawei.com) (119.145.14.64) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 14:12:02 +0000 Received: from 172.24.2.119 (EHLO szxeml211-edg.china.huawei.com) ([172.24.2.119]) by szxrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BME40965; Wed, 06 Nov 2013 22:11:38 +0800 (CST) Received: from SZXEML449-HUB.china.huawei.com (10.82.67.192) by szxeml211-edg.china.huawei.com (172.24.2.182) with Microsoft SMTP Server (TLS) id 14.3.158.1; Wed, 6 Nov 2013 22:11:38 +0800 Received: from SZXEML521-MBX.china.huawei.com ([169.254.1.34]) by szxeml449-hub.china.huawei.com ([10.82.67.192]) with mapi id 14.03.0158.001; Wed, 6 Nov 2013 22:11:37 +0800 From: Kashif Jawed Siddiqui To: "dev@hbase.apache.org" Subject: Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). -> Regionserver node time is greater than master node time Thread-Topic: Region Server is starting normally even if clock skew is more than default 30 seconds(or any configured). -> Regionserver node time is greater than master node time Thread-Index: Ac7a+at6B86WbdzKSpO19djxIm55ZA== Date: Wed, 6 Nov 2013 14:11:36 +0000 Message-ID: <3FEC773ED933774285EE811E6F24DF7A5F0CE057@szxeml521-mbx.china.huawei.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.18.168.105] Content-Type: multipart/alternative; boundary="_000_3FEC773ED933774285EE811E6F24DF7A5F0CE057szxeml521mbxchi_" MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Virus-Checked: Checked by ClamAV on apache.org --_000_3FEC773ED933774285EE811E6F24DF7A5F0CE057szxeml521mbxchi_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, When Region server's time is ahead of Master's time and the difference = is more than hbase.master.maxclockskew value, region server startup is not = failing with ClockOutOfSyncException. ServerManager.java#checkClockSkew long skew =3D System.currentTimeMillis() - serverCurrentTime; if (skew > maxSkew) { String message =3D "Server " + serverName + " has been " + "rejected; Reported time is too far out of sync with master. "= + "Time difference of " + skew + "ms > max allowed of " + maxSkew= + "ms"; LOG.warn(message); throw new ClockOutOfSyncException(message); } Above line results in negative value when Master's time is lesser than = region server time and " if (skew > maxSkew) " check fails to find the ske= w in this case. I will be raising an Issue in JIRA for fixing the same. Please let me k= now if any concerns. Please Note: This was tested in hbase 0.94.11 version and the trunk als= o currently has the same logic. Regards, Kashif Jawed Siddiqui ***************************************************************************= ************ This e-mail and attachments contain confidential information from HUAWEI, w= hich is intended only for the person or entity whose address is listed abov= e. Any use of the information contained herein in any way (including, but n= ot limited to, total or partial disclosure, reproduction, or dissemination)= by persons other than the intended recipient's) is prohibited. If you rece= ive this e-mail in error, please notify the sender by phone or email immedi= ately and delete it! --_000_3FEC773ED933774285EE811E6F24DF7A5F0CE057szxeml521mbxchi_--