Return-Path: X-Original-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-hama-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4D1716D8D for ; Wed, 22 Jun 2011 09:13:00 +0000 (UTC) Received: (qmail 91991 invoked by uid 500); 22 Jun 2011 09:13:00 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 91941 invoked by uid 500); 22 Jun 2011 09:12:59 -0000 Mailing-List: contact hama-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hama-dev@incubator.apache.org Delivered-To: mailing list hama-dev@incubator.apache.org Received: (qmail 91933 invoked by uid 99); 22 Jun 2011 09:12:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 09:12:59 +0000 X-ASF-Spam-Status: No, hits=2.8 required=5.0 tests=MIME_QP_LONG_LINE,MISSING_MIMEOLE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of chl501@nuk.edu.tw does not designate 140.127.234.171 as permitted sender) Received: from [140.127.234.171] (HELO ironport-spam.nuk.edu.tw) (140.127.234.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2011 09:12:51 +0000 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AhoFAJexAU6Mf+oC/2dsb2JhbABUhEmhWwSBXbd4iBqIeYErg3iBCgSHI5pg X-IronPort-AV: E=Sophos;i="4.65,405,1304265600"; d="scan'208,223";a="5187708" Received: from lccmail.nuk.edu.tw ([140.127.234.2]) by ironport-spam.nuk.edu.tw with SMTP; 22 Jun 2011 17:12:08 +0800 Received: By OpenMail Mailer;Wed, 22 Jun 2011 17:12:08 +0800 (CST) From: "ChiaHung Lin" Reply-To: chl501@nuk.edu.tw Subject: Re: Lock and Barrier Synchronization Message-ID: <1308733928.29538.chl501@nuk.edu.tw> In-Reply-To: References: To: "hama-dev" Date: Wed, 22 Jun 2011 17:12:08 +0800 (CST) MIME-Version: 1.0 X-Priority: 1 X-MSMail-Priority: High Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From=20the=20code=20I=20observed,=20it=20seems=20that=20znodes=20created=20a= re=20consisted=20of=20peer=20names=20only=20(in=20the=20form=20of=20`host:po= rt').=20Therefore,=20processes=20at=20different=20superstep=20share=20the=20= flat=20namespace.=20During=20iteration=20of=20each=20supersteps,=20the=20new= er=20superstep=20process=20can=20not=20be=20distinguished=20from=20the=20old= er=20one,=20resulting=20in=20process=20hanging.=20Adding=20superstep=20value= =20to=20created=20znode=20and=20filtering=20out=20znode=20of=20next=20supers= tep=20might=20solve=20the=20problem.=20 But=20I=20haven't=20tested=20the=20code,=20so=20I=20may=20be=20wrong=20becau= se=20of=20misunderstanding.=20=20 -----Original=20message----- From:Edward=20J.=20Yoon=20 To:hama-dev@incubator.apache.org Date:Tue,=2021=20Jun=202011=2017:20:21=20+0900 Subject:Re:=20Lock=20and=20Barrier=20Synchronization Especially,=20this=20can=20be=20problematic=20when=20locking=20a=20large=20n= umber=20of=20BSPPeers. On=20Tue,=20Jun=2021,=202011=20at=205:13=20PM,=20Edward=20J.=20Yoon=20=20wrote: >=20Hi=20all, > >=20Recently=20I'm=20looking=20at=20HAMA-387. > >=20There's=20some=20problem=20related=20with=20lock=20and=20barrier=20synch= ronization. >=20The=20problem=20is=20as=20soon=20as=20last=20one=20of=20lock=20files=20d= eleted=20(before >=20completely=20escape=20from=20while=20loop=20at=20leaveBarrier=20method),= =20others >=20begin=20to=20create=20their=20lock=20file.=20So,=20sometimes,=20it=20cau= ses=20hang. > >=20My=20temporary=20solution=20is=20'Thread.sleep(200);'.=20Good=20but=20no= t=20perfect. >=20If=20zk.getChildren()=20response=20is=20slower=20than=20200=20millisecon= ds,=20process >=20will=20be=20hanged. > >=20Is=20there=20any=20other=20idea? > >=20Thanks. >=20-- >=20Best=20Regards,=20Edward=20J.=20Yoon >=20@eddieyoon > --=20 Best=20Regards,=20Edward=20J.=20Yoon @eddieyoon -- ChiaHung=20Lin Department=20of=20Information=20Management National=20University=20of=20Kaohsiung Taiwan