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 5219C9075 for ; Fri, 21 Oct 2011 12:02:58 +0000 (UTC) Received: (qmail 23168 invoked by uid 500); 21 Oct 2011 12:02:58 -0000 Delivered-To: apmail-incubator-hama-dev-archive@incubator.apache.org Received: (qmail 23112 invoked by uid 500); 21 Oct 2011 12:02:57 -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 23104 invoked by uid 99); 21 Oct 2011 12:02:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2011 12:02:57 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Fri, 21 Oct 2011 12:02:54 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9E326314370 for ; Fri, 21 Oct 2011 12:00:34 +0000 (UTC) Date: Fri, 21 Oct 2011 12:00:34 +0000 (UTC) From: "Thomas Jungblut (Commented) (JIRA)" To: hama-dev@incubator.apache.org Message-ID: <1896100262.655.1319198434649.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1496777383.539.1319175993678.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (HAMA-461) Extract a Message Service from BSPPeer 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-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132612#comment-13132612 ] Thomas Jungblut commented on HAMA-461: -------------------------------------- This could have multiple problems. Hadoop's Writable interface is hacked in all of our classes. So it would be quite hard for other protocols to deal with this. Of course you can always open a ByteArrayOutputStream and set it as the DataOutput and get the real byte codes. But this sucks in performance. Sadly there is no other way, but refactoring the messages. I won't do that, because I changed it in the last release and it is currently quite useable. But I cannot remember why I used a marker interface "Messagable" and made an abstract class for a BSPMessage. Instead it should be a MessagableWritable interface, and other services could then make a MessagableOtherFancyStuff interface. I hope you get the gist. So within this task, I just refactor out the messaging we currently have in our BSPPeerImpl. The overall design has to be revisted, though. I would suggest the next release. > Extract a Message Service from BSPPeer > -------------------------------------- > > Key: HAMA-461 > URL: https://issues.apache.org/jira/browse/HAMA-461 > Project: Hama > Issue Type: Improvement > Affects Versions: 0.3.0 > Reporter: Thomas Jungblut > Fix For: 0.4.0 > > > There's a problem, that we have more synchronized Collections than we need. localQueueForNextIteration (or similar name) is the only one which needs to be thread safe. At least only the put method could be synchronized, because reads does not need to be threadsafe. > So we should refactor our messaging system from the peer itself. > A hint in architecture could give us HAMA-457. > We have to add a factory which let's the user choice their protocol. -- 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