Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8D3D6174F0 for ; Wed, 1 Apr 2015 10:46:17 +0000 (UTC) Received: (qmail 27927 invoked by uid 500); 1 Apr 2015 10:46:17 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 27863 invoked by uid 500); 1 Apr 2015 10:46:17 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 27843 invoked by uid 99); 1 Apr 2015 10:46:17 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Apr 2015 10:46:17 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 9F8D41CAC2C; Wed, 1 Apr 2015 10:46:15 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============4445720413217027586==" MIME-Version: 1.0 Subject: Re: Review Request 31267: Added a test allocator module. From: "Alexander Rukletsov" To: "Niklas Nielsen" , "Michael Park" , "Kapil Arya" Cc: "mesos" , "Alexander Rukletsov" , "Alexander Rojas" Date: Wed, 01 Apr 2015 10:46:15 -0000 Message-ID: <20150401104615.16791.48251@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: "Alexander Rukletsov" X-ReviewGroup: mesos X-ReviewRequest-URL: https://reviews.apache.org/r/31267/ X-Sender: "Alexander Rukletsov" References: <20150327163653.1505.60211@reviews.apache.org> In-Reply-To: <20150327163653.1505.60211@reviews.apache.org> Reply-To: "Alexander Rukletsov" X-ReviewRequest-Repository: mesos --===============4445720413217027586== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On March 27, 2015, 4:36 p.m., Alexander Rojas wrote: > > src/tests/module.cpp, line 137 > > > > > > You may need a `CHECK(modules != NULL)` or a log and return in the NULL case? If you follow the invokation path, you'll see that modules is a stack variable (see `initModules()`) and can't be null. I agree this is not clear at the place where we use a pointer to it and may change in the future, but this is more a general question about the design decision that should go to @tillt. Pass by pointer was introduced in Commit: 7ee3b7b672a4d8fee4fe4eb5f0aa2e7e3bf6b049 Review: https://reviews.apache.org/r/31253 Author: Till Toenshoff - Alexander ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/31267/#review78070 ----------------------------------------------------------- On March 27, 2015, 4:26 p.m., Alexander Rukletsov wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/31267/ > ----------------------------------------------------------- > > (Updated March 27, 2015, 4:26 p.m.) > > > Review request for mesos, Kapil Arya, Michael Park, and Niklas Nielsen. > > > Bugs: MESOS-2160 > https://issues.apache.org/jira/browse/MESOS-2160 > > > Repository: mesos > > > Description > ------- > > The test allocator module is a built-in HierarchicalDRFAllocator put in a module. > > NOTE: Here we add harness code to load the module, tests will be wired up later in the patch stack. > > > Diffs > ----- > > src/Makefile.am 7a06c7028eca8164b1f5fdea6a7ecd37ee6826bb > src/examples/test_allocator_module.cpp PRE-CREATION > src/tests/module.hpp 65e567f21744d9a2b07b8680d45bcd1ea47f9508 > src/tests/module.cpp b81144f56e94034feecf3a6a4992af078cf60a81 > > Diff: https://reviews.apache.org/r/31267/diff/ > > > Testing > ------- > > make check (Mac OS 10.9.5, CentOS 7.0) > > > Thanks, > > Alexander Rukletsov > > --===============4445720413217027586==--