Return-Path: X-Original-To: apmail-mesos-reviews-archive@minotaur.apache.org Delivered-To: apmail-mesos-reviews-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8490618473 for ; Mon, 20 Jul 2015 08:03:33 +0000 (UTC) Received: (qmail 88427 invoked by uid 500); 20 Jul 2015 08:03:24 -0000 Delivered-To: apmail-mesos-reviews-archive@mesos.apache.org Received: (qmail 88400 invoked by uid 500); 20 Jul 2015 08:03:24 -0000 Mailing-List: contact reviews-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@mesos.apache.org Delivered-To: mailing list reviews@mesos.apache.org Received: (qmail 88382 invoked by uid 99); 20 Jul 2015 08:03:23 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2015 08:03:23 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 3C8B01CC036; Mon, 20 Jul 2015 08:03:22 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============8599723731656427213==" MIME-Version: 1.0 Subject: Re: Review Request 36424: Created a command executor helper method. From: "Alexander Rojas" To: "Benjamin Hindman" , "Ben Mahler" , "Paul Brett" , "Cody Maloney" Cc: "Marco Massenzio" , "mesos" , "Alexander Rojas" Date: Mon, 20 Jul 2015 08:03:22 -0000 Message-ID: <20150720080322.10542.47792@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Alexander Rojas" X-ReviewGroup: mesos X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/36424/ X-Sender: "Alexander Rojas" References: <20150718020053.17363.58101@reviews.apache.org> In-Reply-To: <20150718020053.17363.58101@reviews.apache.org> Reply-To: "Alexander Rojas" X-ReviewRequest-Repository: mesos --===============8599723731656427213== 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/36424/#review92232 ----------------------------------------------------------- 3rdparty/libprocess/include/process/subprocess.hpp (line 364) Isn't `++cmdArgs.begin()` the same `cmdArgs.end()` ? I feel that pre-increment looks quite weird. If you still prefer the given style, I think `cmdArgs.begin() + 1` is still more readable and doesn't add complexity. - Alexander Rojas On July 18, 2015, 4 a.m., Marco Massenzio wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/36424/ > ----------------------------------------------------------- > > (Updated July 18, 2015, 4 a.m.) > > > Review request for mesos, Benjamin Hindman, Ben Mahler, Cody Maloney, and Paul Brett. > > > Bugs: MESOS-3035 > https://issues.apache.org/jira/browse/MESOS-3035 > > > Repository: mesos > > > Description > ------- > > Jira: MESOS-2902 > > While researching how to execute an arbitrary script > to detect the Master IP address, it emerged clearly that > a helper method to execute an arbitrary command/script on > a node and obtain either stdout or stderr would have been > useful and avoided a lot of code repetition. > > This could not be ultimately used for the purpose at hand, > but I believe it to be useful enough (particularly, to avoid > people doing "coding by copy&paste" and/or waste time > researching the same functionality). > > This would also be beneficial in MESOS-2830 and MESOS-2834 > factoring out the remote command execution logic. > > > Diffs > ----- > > 3rdparty/libprocess/include/process/subprocess.hpp 310cb4f8e4e2faa5545dffd196d7490c868bc5d6 > 3rdparty/libprocess/src/tests/subprocess_tests.cpp f6acb204582a9e696c3b09d4e4c543bb052e97d4 > > Diff: https://reviews.apache.org/r/36424/diff/ > > > Testing > ------- > > make check > > > Thanks, > > Marco Massenzio > > --===============8599723731656427213==--