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 2C2E9181C6 for ; Tue, 2 Feb 2016 01:06:08 +0000 (UTC) Received: (qmail 90402 invoked by uid 500); 2 Feb 2016 01:06:01 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 90310 invoked by uid 500); 2 Feb 2016 01:06:01 -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 90298 invoked by uid 99); 2 Feb 2016 01:06:00 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 01:06:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 887901804FC for ; Tue, 2 Feb 2016 01:06:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.38 X-Spam-Level: ** X-Spam-Status: No, score=2.38 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2.5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id CvUv2Y7KcEGb for ; Tue, 2 Feb 2016 01:05:53 +0000 (UTC) Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com [74.125.82.47]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 5C3B920271 for ; Tue, 2 Feb 2016 01:05:52 +0000 (UTC) Received: by mail-wm0-f47.google.com with SMTP id 128so96014382wmz.1 for ; Mon, 01 Feb 2016 17:05:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=MI9YsakTRe8aYeh06RKCG4ghbFaWR1rmL660MguWHqU=; b=yUYibaz4lRFmQe3wLaVsi9yDNXtNWD+3JTRFqMJ6K9J9su/CLd2aAlJ+xfHBxM8XDt +d97rNqrbA6bwq3+HK9dxkbTdB8e+M+KWOyQwPnriOJx2YizJspn1fFOKUlJG7IoyiiR 8RwHJQ7IDL06j+fsfPKOdblId8RtbSoFOOTZTYm6xUWL97TQjDfd619S2uJ+3Ek2Q2sM rjkB3OKKAwi5lm3akLmG8+z8cd1egLUwZvwUMBNYiJyKrqaIvXDlkWJRvJzqMNbROKj7 WUD4Vn7nW2lJ0CZMhbfxo+WyT77uRZYMJZApFefX8amp9PrFIw34sSwRg3KLm+xCvozY Wz3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=MI9YsakTRe8aYeh06RKCG4ghbFaWR1rmL660MguWHqU=; b=X4PyuOQ39Oan6O12BbPV1sskHsrTRmYXkTkJv+Y3p/AtP2wRddyNd3uul/kFMzYyv9 2XWht6vhkMalimWB48/IDMnm0kiPyAfbvQNeRBFtFgqSbJetmmfkLyyvTos5AohvB8jB 1sgqEVnRezTg2vXdHR1bn/Wb22RCiZV3zGj7wyJByA5KhkfZd+LNEBhLmP5MPOCWMfxr BI73OdlKFkha9+Qb5aSn0QFZj+fMdd87zWVgeWU95sndIV2ifDD/AiNP5f4weinJWLS5 NmuOe624mIhCLgSLcboH3kDQSWA0ushSMlS6x8MQoycWmjx2lynJItTG0uTXA0Mh0zFh /PfQ== X-Gm-Message-State: AG10YORb4DmlPRpkkfR4SYo0pwLGzB38z28Sgwl5Trxe6MJ96KA+nRal6ethYcYgIqrNxw== X-Received: by 10.28.146.145 with SMTP id u139mr14129805wmd.81.1454375150897; Mon, 01 Feb 2016 17:05:50 -0800 (PST) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com. [74.125.82.48]) by smtp.gmail.com with ESMTPSA id u4sm31588869wjz.4.2016.02.01.17.05.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2016 17:05:50 -0800 (PST) Received: by mail-wm0-f48.google.com with SMTP id p63so95796911wmp.1 for ; Mon, 01 Feb 2016 17:05:50 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.194.116.197 with SMTP id jy5mr24787287wjb.43.1454375149910; Mon, 01 Feb 2016 17:05:49 -0800 (PST) Received: by 10.28.128.207 with HTTP; Mon, 1 Feb 2016 17:05:49 -0800 (PST) In-Reply-To: <8B78B3D5-00DD-40D5-98DB-04DF26D05C69@gmail.com> References: <0BD032B2-B4CA-433B-86AC-EC47DE96FE3B@gmail.com> <8B78B3D5-00DD-40D5-98DB-04DF26D05C69@gmail.com> Date: Mon, 1 Feb 2016 17:05:49 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [jira] [Created] (MESOS-4397) Rename ContainerPrepareInfo to ContainerLaunchInfo for isolators. From: Jie Yu To: dev@mesos.apache.org Cc: issues@mesos.apache.org Content-Type: multipart/alternative; boundary=001a1130cf262e6c4d052abf1afe --001a1130cf262e6c4d052abf1afe Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable James, You probably need to use ifdef on mesos version. For example: https://github.com/emccode/mesos-module-dvdi/blob/master/isolator/isolator/= docker_volume_driver_isolator.cpp#L127 The whole point of the recent change is to make sure we don't have to those ifdef in the future (by using protobufs). - Jie On Mon, Feb 1, 2016 at 4:50 PM, James Peach wrote: > > > On Feb 1, 2016, at 4:27 PM, Jie Yu wrote: > > > > James, > > > > The above change didn't touch the allocator interface. Can you give us > more > > information here? > > sorry I meant to say "isolator" :) > > bash-4.1$ make > ... > src/isolator.cc:184:36: error: =E2=80=98ContainerPrepareInfo=E2=80=99 is = not a member of > =E2=80=98mesos::slave=E2=80=99 > virtual process::Future > > prepare( > ^ > src/isolator.cc:184:36: error: =E2=80=98ContainerPrepareInfo=E2=80=99 is = not a member of > =E2=80=98mesos::slave=E2=80=99 > src/isolator.cc:184:70: error: template argument 1 is invalid > virtual process::Future > > prepare( > ^ > src/isolator.cc:184:72: error: template argument 1 is invalid > virtual process::Future > > prepare( > > > > > > > - Jie > > > > On Mon, Feb 1, 2016 at 4:15 PM, James Peach wrote: > > > >> This is source incompatible for allocator modules. Can anyone suggest > how > >> to build the same allocator module code against multiple Mesos version= s? > >> > >> > >>> On Jan 15, 2016, at 9:32 AM, Jie Yu (JIRA) wrote: > >>> > >>> Jie Yu created MESOS-4397: > >>> ----------------------------- > >>> > >>> Summary: Rename ContainerPrepareInfo to ContainerLaunchInf= o > >> for isolators. > >>> Key: MESOS-4397 > >>> URL: https://issues.apache.org/jira/browse/MESOS-4397 > >>> Project: Mesos > >>> Issue Type: Task > >>> Reporter: Jie Yu > >>> > >>> > >>> The name "ContainerPrepareInfo" does not really capture the purpose o= f > >> this struct. ContainerLaunchInfo better captures the purpose of this > >> struct. ContainerLaunchInfo is returned by the isolator 'prepare' > function. > >> It contains information about how a container should be launched (e.g.= , > >> environment variables, namespaces, commands, etc.). The information > will be > >> used by the Mesos Containerizer when launching the container. > >>> > >>> > >>> > >>> -- > >>> This message was sent by Atlassian JIRA > >>> (v6.3.4#6332) > >> > >> > > --001a1130cf262e6c4d052abf1afe--