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 947829E95 for ; Sun, 4 Mar 2012 14:06:21 +0000 (UTC) Received: (qmail 40465 invoked by uid 500); 4 Mar 2012 14:06:21 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 40368 invoked by uid 500); 4 Mar 2012 14:06:21 -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 40356 invoked by uid 99); 4 Mar 2012 14:06:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2012 14:06:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2012 14:06:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 659A98327 for ; Sun, 4 Mar 2012 14:06:00 +0000 (UTC) Date: Sun, 4 Mar 2012 14:06:00 +0000 (UTC) From: "Thomas Jungblut (Commented) (JIRA)" To: hama-dev@incubator.apache.org Message-ID: <1020864565.19737.1330869960421.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1605205665.14735.1330076628739.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HAMA-515) Counter should be synchronized by sync() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HAMA-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13221895#comment-13221895 ] Thomas Jungblut commented on HAMA-515: -------------------------------------- Counters are currently implemented via RPC. bq.If we just want bsp master to know the current count (superstep value) that bsp tasks sync to, placing a watch on zk (pointing to /bsp/job_id) and process() after get notified should work. the BSPMaster does not need the information, but the task itself, summed from all other tasks. > Counter should be synchronized by sync() > ---------------------------------------- > > Key: HAMA-515 > URL: https://issues.apache.org/jira/browse/HAMA-515 > Project: Hama > Issue Type: New Feature > Affects Versions: 0.4.0 > Reporter: Thomas Jungblut > Priority: Minor > Fix For: 0.5.0 > > > We should synchronize the counters in all tasks after a sync() call. > Then someone can use it for flow control. E.G. graph related algorithms, to get the number of globally updated vertices. > Two options to solve this: > - Sync the whole stuff over RPC from the BSPMaster > - Use Zookeeper for counter handling -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira