Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-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 2BD6D17F80 for ; Mon, 28 Sep 2015 14:40:14 +0000 (UTC) Received: (qmail 79459 invoked by uid 500); 28 Sep 2015 14:40:14 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 79417 invoked by uid 500); 28 Sep 2015 14:40:14 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 79406 invoked by uid 99); 28 Sep 2015 14:40:14 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Sep 2015 14:40:14 +0000 Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 7AA5D1A025E for ; Mon, 28 Sep 2015 14:40:13 +0000 (UTC) Received: by laer8 with SMTP id r8so33562238lae.2 for ; Mon, 28 Sep 2015 07:40:11 -0700 (PDT) X-Gm-Message-State: ALoCoQkJs1HXCBy9xebI2yDy0qe3+6/JbjzNHzW9sAgqdw8d2BiQ++aVSUakavv1mwhSkVLFREIy X-Received: by 10.112.180.230 with SMTP id dr6mr5499676lbc.72.1443451211423; Mon, 28 Sep 2015 07:40:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.74.201 with HTTP; Mon, 28 Sep 2015 07:39:51 -0700 (PDT) X-Originating-IP: [85.155.76.117] In-Reply-To: <20150928125327.GO19314@boudnik.org> References: <20150928125327.GO19314@boudnik.org> From: Raul Kripalani Date: Mon, 28 Sep 2015 15:39:51 +0100 Message-ID: Subject: Fwd: Coding Guidelines: zookeeper IP finder and mqtt streamer To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary=001a11c345bcb53af70520cfacd8 --001a11c345bcb53af70520cfacd8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cos, your language seems too harsh for the situation. No one here is committing negligence. The explanation is simple: people aren't perfect. Now, let's take a step back and see the big picture. Around 95% of the commits in this project are by GridGain personnel (check git shortlog -s -n) who have spent months/years working on this codebase during their daily job. Their eyes are accustomed to this code style and naturally they'll spot oddities in a twitch. It's obvious. For newer people, we don't even have checkstyle nor decent facilities for newer people to spot formatting issues quickly. Because, surprise! The issues that Yakov spotted are simply of formatting. The code is functional and much better tested than other streamers and IP Finders. Other streamers have 1 test, this streamer has 9 unit tests! Look at the code. Furthermore, Yakov seems to have made a mistake reading the Git commit history. There were never WIP commits on master. So may I ask you to stop using catastrophic vocabulary. The situation is not catastrophic, it's simply improvable. Now, as an ASF member, I ask you to recognise that unaffiliated volunteers like me bring diversity to the project that's otherwise dominated by a company. You should appreciate that =E2=80=93 more so given that you're a f= ormer mentor. I do this for the fun, and attacks like yours take the fun out of it. Have a look again at this project's team composition and, for those people not affiliated to GridGain, try to find when their last commit was... Then you'll see what I mean. P.S.: I did not merge the ZK IP Finder myself and I'm assuming that Valentin will want to comment. Regards, *Ra=C3=BAl Kripalani* PMC & Committer @ Apache Ignite, Apache Camel | Integration, Big Data and Messaging Engineer http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Mon, Sep 28, 2015 at 1:53 PM, Konstantin Boudnik wrote: > Are these official guidelines that are worked-out and communicated by > community? Basically, were they made clear when the project went on the C= TR > model? I presume it is/was looking at the wikipage. Hence non-sticking > to them is a case of negligence and needs to be addressed accordingly. > > I would also want to highlight the other side of such negligence: by > dumping > semi-baked code to the master one creates a burden for the rest of the > community as the code degrades in quality, potentially breaks tests, styl= e > checks, etc. And someone else needs to deal with it to unblock her's futu= re > progress. And that's brings forward another point that Brane and I were > making on a few occasions: in the CTR communities you need to invite in > people > with great deal of attention to how they work with others. Are they > respecting > others' time and effort? Are they good citizens of the community? And on, > and > on. > > Another purely technically matter: master isn't a trash can. Master shoul= d > be > close to releasable at any given point of time. WIP stuff doesn't belong = to > master, that's what the dev and integration branches are for. > > Cos > > On Mon, Sep 28, 2015 at 03:31PM, Yakov Zhdanov wrote: > > Guys, > > > > I have just reviewed the code and have some comments. 1-2 are very > serious > > from my point of view. > > > > 1. Code is in master. Did anyone checked tests on TC? Moreover, are the= re > > suites for those tests? > > 2. It seems that work on streamer has been done directly in master. I s= ee > > WIP commits, but I think I should not. As agreed finished work should b= e > > committed as a single set of changes. > > 3. I see unused variable > > - org.apache.ignite.stream.mqtt.MqttStreamer#cachedLogPrefix > > 4. Unused import - import com.google.common.base.Joiner; > > 5. Code and javadocs lines exceed 120 chars restriction. > > 6. Plenty of javadocs issues - absence, multiline "inheritdoc", etc. > > 7. Spacing is not correct - in ignite codebase logical blocks are > separated > > with blank line. > > 8. There should always be a blank line at the end of each file. > > 9. retrier vs retryier issue. > > > > Who is in charge for this code? Raul, Val? Can anyone fix my comments? > > > > I would also ask everyone (even committers) not to commit to master > without > > doing review with another committer. > > > > Here is the link to Ignite's coding guidelines - > > https://cwiki.apache.org/confluence/display/IGNITE/Coding+Guidelines. > Feel > > free to suggest and discuss edits if anything does not seem valid to yo= u. > > > > Thanks! > > > > --Yakov > --001a11c345bcb53af70520cfacd8--