Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-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 B3DB417BFF for ; Tue, 11 Nov 2014 07:22:13 +0000 (UTC) Received: (qmail 33878 invoked by uid 500); 11 Nov 2014 07:22:13 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 33835 invoked by uid 500); 11 Nov 2014 07:22:13 -0000 Mailing-List: contact dev-help@falcon.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.incubator.apache.org Delivered-To: mailing list dev@falcon.incubator.apache.org Received: (qmail 33824 invoked by uid 99); 11 Nov 2014 07:22:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2014 07:22:13 +0000 X-ASF-Spam-Status: No, hits=-1998.4 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 11 Nov 2014 07:22:11 +0000 Received: (qmail 30577 invoked by uid 99); 11 Nov 2014 07:20:36 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Nov 2014 07:20:36 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id DC6841DFDA6; Tue, 11 Nov 2014 07:20:39 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============3594063543746543138==" MIME-Version: 1.0 Subject: Re: Review Request 27029: FALCON-697 - Messaging improvements on Producer From: shwetha.gs@inmobi.com To: shwetha.gs@inmobi.com, "Srikanth Sundarrajan" , "Ajay Yadava" Cc: "Suma Shivaprasad" , "Falcon" Date: Tue, 11 Nov 2014 07:20:39 -0000 Message-ID: <20141111072039.19819.14623@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: noreply@reviews.apache.org X-ReviewGroup: Falcon X-ReviewRequest-URL: https://reviews.apache.org/r/27029/ X-Sender: noreply@reviews.apache.org References: <20141110145415.19818.3895@reviews.apache.org> In-Reply-To: <20141110145415.19818.3895@reviews.apache.org> Reply-To: shwetha.gs@inmobi.com X-ReviewRequest-Repository: falcon-git X-Virus-Checked: Checked by ClamAV on apache.org --===============3594063543746543138== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/27029/#review60762 ----------------------------------------------------------- messaging/src/main/java/org/apache/falcon/messaging/FalconJMSMessageProducer.java System message on falcon topic has 1 message. So, feedNames is list of output feed names and feedPaths is list of corresponding output paths. This breaks for retention as feedNames will contain just 1 name and feedPaths will contain list of paths. We need to take care of this messaging/src/main/java/org/apache/falcon/messaging/FalconJMSMessageProducer.java Also, at retention we delete even stats and meta paths of the feed(in addition to data paths) and all these paths are returned in feedPaths. The message should contain just the data paths. We can handle it in another jira as well messaging/src/main/java/org/apache/falcon/messaging/JMSMessageProducer.java Move getBrokerImplClass () and getBrokerUrl () to concrete class? messaging/src/main/java/org/apache/falcon/messaging/UserJMSMessageProducer.java The function shouldn't take feedNames as argument(If there are multiple outputs for the same feed). Isn't feedNamesVsPaths.keySet() enough? - shwethags On Nov. 10, 2014, 2:54 p.m., Suma Shivaprasad wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/27029/ > ----------------------------------------------------------- > > (Updated Nov. 10, 2014, 2:54 p.m.) > > > Review request for Falcon, Ajay Yadava, shwethags, and Srikanth Sundarrajan. > > > Bugs: FALCON-697 > https://issues.apache.org/jira/browse/FALCON-697 > > > Repository: falcon-git > > > Description > ------- > > In case of EVICTION and REPLICATION, generating one message per feed to both FALCON topic and user topic with all feed paths > > In case of GENERATE, in system topic(FALCON.ENITITY.TOPIC) generating one message per process with all the feed paths. In User topic(FALCON Feedname/process), generating one message per feed for feed name topics and one message per process topic with all the feed paths > > > Diffs > ----- > > messaging/src/main/java/org/apache/falcon/messaging/FalconJMSMessageProducer.java PRE-CREATION > messaging/src/main/java/org/apache/falcon/messaging/JMSMessageProducer.java 629e6a5 > messaging/src/main/java/org/apache/falcon/messaging/UserJMSMessageProducer.java PRE-CREATION > messaging/src/test/java/org/apache/falcon/messaging/FeedProducerTest.java 2f5aa70 > messaging/src/test/java/org/apache/falcon/messaging/JMSMessageProducerTest.java d4373de > messaging/src/test/java/org/apache/falcon/messaging/ProcessProducerTest.java 1cd3310 > > Diff: https://reviews.apache.org/r/27029/diff/ > > > Testing > ------- > > Made UT changes to current tests > > > Thanks, > > Suma Shivaprasad > > --===============3594063543746543138==--