Re: Review Request 29976: Moved launchTasks logics to ACCEPT call handler in master.

2015-01-22 Thread Jie Yu
ough additional overloads (possibly per operation to > > cleanup the cruft in the Offer::Operation::LAUNCH case block below), but > > one step at a time, a TODO for this latter part would be great :) Left a TODO. - Jie -

Re: Review Request 29974: Added stream function for repeated protobuf messages.

2015-01-22 Thread Jie Yu
t; > > But obviously both work. Just mentioning what I've seen in the past. Good idea! I used it. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.or

Re: Review Request 29918: Introduced a generic checkpoint function.

2015-01-21 Thread Jie Yu
ned above for Resources? src/tests/slave_recovery_tests.cpp <https://reviews.apache.org/r/29918/#comment113720> Feel free to using google::protobuf::RepeatedPtrField in the begining. src/tests/slave_recovery_tests.cpp <https://reviews.apache.org/r/29918/#comment113723> Add

Re: Review Request 30149: mesos: Added O_CLOEXEC flag to os::open calls.

2015-01-21 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/30149/#review69102 --- Ship it! Ship It! - Jie Yu On Jan. 21, 2015, 11:52 p.m

Re: Review Request 30148: libprocess: Added O_CLOEXEC flag to os::open calls.

2015-01-21 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/30148/#review69101 --- Ship it! Thanks for the cleanup! - Jie Yu On Jan. 21, 2015, 11

Re: Review Request 30109: Added O_CLOEXEC flag in os::write.

2015-01-21 Thread Jie Yu
adding this flag for all os::open in our code base? - Jie Yu On Jan. 21, 2015, 10:43 p.m., Michael Park wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache

Re: Review Request 30145: mesos: Narrow down permissions on file creation through os::open.

2015-01-21 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/30145/#review69054 --- Ship it! Ship It! - Jie Yu On Jan. 21, 2015, 10:25 p.m

Re: Review Request 30144: libprocess: Narrow down permissions on file creation through os::open.

2015-01-21 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/30144/#review69052 --- Ship it! Ship It! - Jie Yu On Jan. 21, 2015, 10:25 p.m

Re: Review Request 30143: stout: Narrow down permissions on file creation through os::open.

2015-01-21 Thread Jie Yu
e, and everywhere else. - Jie Yu On Jan. 21, 2015, 10:25 p.m., Michael Park wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.

Re: Review Request 29976: Moved launchTasks logics to ACCEPT call handler in master.

2015-01-21 Thread Jie Yu
e9dcca3c92c94f3123519855e238bcef47eeece9 src/tests/resource_offers_tests.cpp d098e7016ac0da7f1d629af099bb1b8fa66da839 Diff: https://reviews.apache.org/r/29976/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 30111: Added support for RepeatedPtrField to ::protobuf::read.

2015-01-21 Thread Jie Yu
ssage.isError()) { return Error(message.error()); } else if (message.isNone()) { break; } else { result.Add()->CopyFrom(message.get()); } ``` 3rdparty/libprocess/3rdparty/stout/include/stout/protobuf.hpp <https://reviews.apache.org/r/30111/#comment113612>

Re: Review Request 30140: Fixed the build issue in collect.hpp for gcc-4.4.

2015-01-21 Thread Jie Yu
-4.4). Sure. Added a NOTE in the code. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/30140/#review69031 --- On Jan. 21, 201

Review Request 30140: Fixed the build issue in collect.hpp for gcc-4.4.

2015-01-21 Thread Jie Yu
/ Testing --- make check using gcc-4.4.7 Thanks, Jie Yu

Re: Review Request 30109: Added O_CLOEXEC flag and fixed formatting in os::write.

2015-01-21 Thread Jie Yu
> On Jan. 21, 2015, 6:16 p.m., Jie Yu wrote: > > 3rdparty/libprocess/3rdparty/stout/include/stout/os.hpp, line 300 > > <https://reviews.apache.org/r/30109/diff/1/?file=827850#file827850line300> > > > > Not your fault, but should we use: > >

Re: Review Request 30112: Added ::protobuf::write -> ::protobuf::read round-trip test for RepeatedPtrField.

2015-01-21 Thread Jie Yu
ease get the result from read and ASSERT_SOME on it. ``` Result> read = ::protobuf::read<...>(file); ASSERT_SOME(read); ASSERT_EQ(read.get().size(), size); for (...) { EXPECT_EQ(read.get().Get(i), actual.Get(i)); } ``` - Jie Yu On Jan. 21, 201

Re: Review Request 30110: Added support for RepeatedPtrField to ::protobuf::write.

2015-01-21 Thread Jie Yu
' and kill the following two 'write's? - Jie Yu On Jan. 21, 2015, 10:19 a.m., Michael Park wrote: > > --- > This is an automatically generated

Re: Review Request 29974: Added stream function for repeated protobuf messages.

2015-01-21 Thread Jie Yu
e. Will follow up with a cleanup. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29974/#review68890 --- On Jan.

Re: Review Request 29976: Moved launchTasks logics to ACCEPT call handler in master.

2015-01-21 Thread Jie Yu
827019#file827019line556> > > > > Any reason to not do this is a subsequent patch? These tests are out of date because creating persistent volumes now needs to be explicitly declared as an operation. - Jie --- This is

Re: Review Request 30109: Added O_CLOEXEC flag and fixed formatting in os::write.

2015-01-21 Thread Jie Yu
tps://reviews.apache.org/r/30109/#comment113487> Not your fault, but should we use: ```S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH```? - Jie Yu On Jan. 21, 2015, 10:18 a.m., Michael Park wrote: > > --- > This is an automati

Re: Review Request 30108: Include in .

2015-01-21 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/30108/#review68945 --- Ship it! Ship It! - Jie Yu On Jan. 21, 2015, 10:16 a.m

Review Request 30131: Used persistent volumes consistently in the code base.

2015-01-21 Thread Jie Yu
, Jie Yu

Review Request 30130: Killed Resources::Transformation in favor of using Offer::Operation.

2015-01-21 Thread Jie Yu
/tests/mesos.hpp 591134bab31da0a1cc224e332666d05f320d0f87 src/tests/resources_tests.cpp b7c1ddfda952f2d6b7f82e90cfe7b6b0aafbc36a src/tests/sorter_tests.cpp 56e5714c2ab97d0ac81d29e1acb1fbec15471489 Diff: https://reviews.apache.org/r/30130/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29973: Passed framework ID instead framework info to Master::receive.

2015-01-21 Thread Jie Yu
eviews.apache.org/r/29973/#review68814 ------- On Jan. 20, 2015, 6:49 p.m., Jie Yu wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/29973/ > --

Review Request 30129: Style fixes for master.hpp.

2015-01-21 Thread Jie Yu
: mesos-git Description --- Style fixes for master.hpp. Diffs - src/master/master.hpp a8ce4d023ddea36cb83a2dc7b95abd12342f345a Diff: https://reviews.apache.org/r/30129/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29033: PortMappingIsolator: added metrics for the numbers of active and TIME_WAIT tcp connections.

2015-01-20 Thread Jie Yu
> This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/29033/ > --- > > (Updated Jan. 20, 2015, 8:21 p.m.) > > > Review request for mesos,

Re: Review Request 29033: PortMappingIsolator: added metrics for the numbers of active and TIME_WAIT tcp connections.

2015-01-20 Thread Jie Yu
- > > (Updated Jan. 20, 2015, 8:21 p.m.) > > > Review request for mesos, Dominic Hamon, Ian Downes, Jie Yu, and Cong Wang. > > > Repository: mesos-git > > > Description > --- > > While we are sti

Re: Review Request 29033: PortMappingIsolator: added metrics for the numbers of active and TIME_WAIT tcp connections.

2015-01-20 Thread Jie Yu
> --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/29033/ > ------- > > (Updated Jan. 20, 2015, 8:21 p.m.) >

Re: Review Request 29033: PortMappingIsolator: added metrics for the numbers of active and TIME_WAIT tcp connections.

2015-01-20 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29033/#review68779 --- Ship it! - Jie Yu On Jan. 20, 2015, 8:21 p.m., Chi Zhang wrote

Re: Review Request 29991: Removed unnecessary allocator expectations in the tests.

2015-01-20 Thread Jie Yu
mment113212> Ditto. src/tests/master_allocator_tests.cpp <https://reviews.apache.org/r/29991/#comment113216> Ditto. src/tests/master_allocator_tests.cpp <https://reviews.apache.org/r/29991/#comment113217> Ditto. - Jie

Re: Review Request 29990: Updated TestAllocatorProcess to avoid the test warnings.

2015-01-20 Thread Jie Yu
990/#comment113198> Can we pull these to the top of this file? src/tests/mesos.hpp <https://reviews.apache.org/r/29990/#comment113208> Haven't seen this being used. - Jie Yu On Jan. 16, 2015, 11:12 p.m.,

Re: Review Request 29989: Renamed MockAllocatorProcess to TestAllocatorProcess.

2015-01-20 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29989/#review68766 --- Ship it! Ship It! - Jie Yu On Jan. 16, 2015, 11:12 p.m., Ben

Re: Review Request 29976: Moved launchTasks logics to ACCEPT call handler in master.

2015-01-20 Thread Jie Yu
e9dcca3c92c94f3123519855e238bcef47eeece9 src/tests/resource_offers_tests.cpp d098e7016ac0da7f1d629af099bb1b8fa66da839 Diff: https://reviews.apache.org/r/29976/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29975: Renamed the Accept call handler to accept.

2015-01-20 Thread Jie Yu
Diff: https://reviews.apache.org/r/29975/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29974: Added stream function for repeated protobuf messages.

2015-01-20 Thread Jie Yu
/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29973: Passed framework ID instead framework info to Master::receive.

2015-01-20 Thread Jie Yu
e9dcca3c92c94f3123519855e238bcef47eeece9 Diff: https://reviews.apache.org/r/29973/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 30081: Added os::rename to stout.

2015-01-20 Thread Jie Yu
/rename.hpp <https://reviews.apache.org/r/30081/#comment113163> Use stdio.h - Jie Yu On Jan. 20, 2015, 6:08 p.m., Michael Park wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://re

Re: Review Request 29973: Passed framework ID instead framework info to Master::receive.

2015-01-20 Thread Jie Yu
framework lookup + > > pid validation), thoughts? Good idea. DOne! - Jie ----------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29973/#review68521 --- On Jan. 16, 2015, 7:23 p.m., Jie Yu wrote: >

Re: Review Request 29996: Added signal handling to the low level scheduler tests.

2015-01-16 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29996/#review68525 --- Ship it! Ship It! - Jie Yu On Jan. 16, 2015, 11:39 p.m., Ben

Re: Review Request 29896: Added a slave flag to turn off disk quota enforcement.

2015-01-16 Thread Jie Yu
for containers Done. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29896/#review68512 --- On Jan. 17, 2015, 12:41 a.m., Jie Yu wrote: > > -

Re: Review Request 29895: Added disk usage statistics reporting.

2015-01-16 Thread Jie Yu
/disk_quota_tests.cpp 4d23d97b5636bdc447c79e37b3b1b1402068b20e Diff: https://reviews.apache.org/r/29895/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29896: Added a slave flag to turn off disk quota enforcement.

2015-01-16 Thread Jie Yu
/disk.cpp fcadd780f9d417f7422080a03cfbfc2e4d15f1b3 src/slave/flags.hpp a4498e6573758642ed8ba28d6a1d228b91c4f2d4 src/tests/disk_quota_tests.cpp 4d23d97b5636bdc447c79e37b3b1b1402068b20e Diff: https://reviews.apache.org/r/29896/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29896: Added a slave flag to turn off disk quota enforcement.

2015-01-16 Thread Jie Yu
/disk.cpp fcadd780f9d417f7422080a03cfbfc2e4d15f1b3 src/slave/flags.hpp a4498e6573758642ed8ba28d6a1d228b91c4f2d4 src/tests/disk_quota_tests.cpp 4d23d97b5636bdc447c79e37b3b1b1402068b20e Diff: https://reviews.apache.org/r/29896/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29895: Added disk usage statistics reporting.

2015-01-16 Thread Jie Yu
/disk_quota_tests.cpp 4d23d97b5636bdc447c79e37b3b1b1402068b20e Diff: https://reviews.apache.org/r/29895/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29896: Added a slave flag to turn off disk quota enforcement.

2015-01-16 Thread Jie Yu
t should be able to catch the kill of the task. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29896/#review68376 --- On Jan. 14, 2015, 8:53

Re: Review Request 29895: Added disk usage statistics reporting.

2015-01-16 Thread Jie Yu
eviews.apache.org/r/29895/diff/1/?file=821627#file821627line211> > > > > // NOTE: We can't pause the clock because we need the reaper to reap > > the 'du' subprocess. Added. - Jie --- This is an automatically

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-16 Thread Jie Yu
s.apache.org/r/29688/#review68314 --- On Jan. 14, 2015, 8:28 p.m., Jie Yu wrote: > > --- > This is an automatically generated e-mail. To reply, v

Review Request 29976: Moved launchTasks logics to ACCEPT call handler in master.

2015-01-16 Thread Jie Yu
d098e7016ac0da7f1d629af099bb1b8fa66da839 Diff: https://reviews.apache.org/r/29976/diff/ Testing --- make check Thanks, Jie Yu

Review Request 29974: Added stream function for repeated protobuf messages.

2015-01-16 Thread Jie Yu
: mesos-git Description --- Added stream function for repeated protobuf messages. Diffs - src/common/type_utils.hpp 2d22db85f87ec5c1134208aae5b2105d2d267000 Diff: https://reviews.apache.org/r/29974/diff/ Testing --- make check Thanks, Jie Yu

Review Request 29975: Renamed the Accept call handler to accept.

2015-01-16 Thread Jie Yu
check Thanks, Jie Yu

Review Request 29973: Passed framework ID instead framework info to Master::receive.

2015-01-16 Thread Jie Yu
/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29918: Introduced checkpoint function for Resources.

2015-01-15 Thread Jie Yu
> On Jan. 15, 2015, 7:07 p.m., Jie Yu wrote: > > > > Jie Yu wrote: > Also, can you follow BenM's comment in r28809 and create a ticket to > capture the TODO. I am wondering if we end up using two files to solve the > TODO, what the interface should be? May

Re: Review Request 29918: Introduced checkpoint function for Resources.

2015-01-15 Thread Jie Yu
> On Jan. 15, 2015, 7:07 p.m., Jie Yu wrote: > > Also, can you follow BenM's comment in r28809 and create a ticket to capture the TODO. I am wondering if we end up using two files to solve the TODO, what the interface should be? Maybe we should call it state::update(path, r

Re: Review Request 29918: Introduced checkpoint function for Resources.

2015-01-15 Thread Jie Yu
ts/slave_recovery_tests.cpp <https://reviews.apache.org/r/29918/#comment112469> That makes me feel that we should support repeated field for protobuf::read. In that way, we could simplify the checkpoint function above as well (instead of doing multiple writes, we can make it a single

Re: Review Request 29918: Introduced checkpoint function for Resources.

2015-01-15 Thread Jie Yu
commit this patch first, and the subsequent patches will become more clear. - Jie Yu On Jan. 15, 2015, 5:19 a.m., Michael Park wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.

Re: Review Request 29911: Added Resources(const std::vector

2015-01-15 Thread Jie Yu
g/r/29911/#comment112449> This fits in one line? src/common/resources.cpp <https://reviews.apache.org/r/29911/#comment112450> Can you use ```_resources``` here? - Jie Yu On Jan. 15, 2015, 2:01 a.m., Michae

Re: Review Request 29870: Supported accept offers in C++ scheduler driver.

2015-01-14 Thread Jie Yu
K is strange, given we're in a block defined by > > `savedOffers.contains(offerId)` already. Killed. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29870/#review68007 ---

Review Request 29896: Added a slave flag to turn off disk quota enforcement.

2015-01-14 Thread Jie Yu
f1b8dfbb7391167b67a9498561742aa9ab9089a6 src/tests/disk_quota_tests.cpp PRE-CREATION Diff: https://reviews.apache.org/r/29896/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-14 Thread Jie Yu
matically generated e-mail. To reply, visit: https://reviews.apache.org/r/29688/#review68113 ------- On Jan. 14, 2015, 8:28 p.m., Jie Yu wrote: > > ---

Review Request 29895: Added disk usage statistics reporting.

2015-01-14 Thread Jie Yu
5007c0c58c5573ef19163c2c58cc3a7c5b555f46 src/slave/containerizer/isolators/posix/disk.hpp PRE-CREATION src/slave/containerizer/isolators/posix/disk.cpp PRE-CREATION src/tests/disk_quota_tests.cpp PRE-CREATION Diff: https://reviews.apache.org/r/29895/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-14 Thread Jie Yu
Testing --- make check Thanks, Jie Yu

Re: Review Request 29690: Added an integration test for enforcing disk quota.

2015-01-14 Thread Jie Yu
Diff: https://reviews.apache.org/r/29690/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29689: Added tests for verifying DiskUsageChecker.

2015-01-14 Thread Jie Yu
fc0c3227466ccf364353a739fec8d9532ea3c683 src/tests/disk_quota_tests.cpp PRE-CREATION Diff: https://reviews.apache.org/r/29689/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29689: Added tests for verifying DiskUsageChecker.

2015-01-14 Thread Jie Yu
tests. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29689/#review67745 --- On Jan. 12, 2015, 6:47 p.m

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-14 Thread Jie Yu
tors/posix/disk.cpp PRE-CREATION src/slave/containerizer/mesos/containerizer.cpp 0bcf5ce7cfab470cabd3af3535344d19cb33b1c8 src/slave/flags.hpp f1b8dfbb7391167b67a9498561742aa9ab9089a6 Diff: https://reviews.apache.org/r/29688/diff/ Testing --- make check Thanks, Jie Yu

Review Request 29892: Added three tuples overload for process::await.

2015-01-14 Thread Jie Yu
--- Added three tuples overload for process::await. Diffs - 3rdparty/libprocess/include/process/collect.hpp 3bee8a6a0b7b48627ebc11c8b950b8582bba2c06 Diff: https://reviews.apache.org/r/29892/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29796: Added initial operational guide to document master quorum changes.

2015-01-14 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29796/#review68069 --- Ship it! Ship It! - Jie Yu On Jan. 14, 2015, 6:44 p.m., Ben

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-14 Thread Jie Yu
med the isolator as well. > On Jan. 12, 2015, 11:11 p.m., Ben Mahler wrote: > > src/slave/containerizer/isolators/disk_quota.cpp, lines 392-393 > > <https://reviews.apache.org/r/29688/diff/4/?file=816762#file816762line392> > > > > Can you implement this? The

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-13 Thread Jie Yu
The caller (the one call check(path)) should be able to print the path. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29688/#review67519 --------

Re: Review Request 29869: Added initial Call handler in the Master for accepting offers.

2015-01-13 Thread Jie Yu
g/r/29869/#comment112174> Any reason keeps the scheduler:: namespace prefix? - Jie Yu On Jan. 14, 2015, 1:25 a.m., Ben Mahler wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.

Re: Review Request 29033: PortMappingIsolator: added metrics for the numbers of active and TIME_WAIT tcp connections.

2015-01-13 Thread Jie Yu
rc/tests/port_mapping_tests.cpp <https://reviews.apache.org/r/29033/#comment112126> Is it guaranteed that the connective will be still active? If not, I would rather not introduce those checks as it could cause flackyness. - Jie Yu On Jan. 9, 2015, 2:55 a.m., Chi Zhang wrote: > > ---

Re: Review Request 29869: Added initial Call handler in the Master for accepting offers.

2015-01-13 Thread Jie Yu
lso, using a unified name 'call' makes it clear that it's for the new API. src/master/master.cpp <https://reviews.apache.org/r/29869/#comment112067> I would suggest leaving empty with an Error message here. It'll be replaced anyway.

Re: Review Request 29870: Supported accept offers in C++ scheduler driver.

2015-01-13 Thread Jie Yu
src/scheduler/scheduler.cpp ff6ff115152c9278df6916fe9db432cbf127984e Diff: https://reviews.apache.org/r/29870/diff/ Testing (updated) --- will add tests to test accept offers later. Sadly, we don't have unit tests for scheduler drivers. make check passed Thanks, Jie Yu

Review Request 29870: Supported accept offers in C++ scheduler driver.

2015-01-13 Thread Jie Yu
ff6ff115152c9278df6916fe9db432cbf127984e Diff: https://reviews.apache.org/r/29870/diff/ Testing --- will add tests to test accept offers later. Sadly, we don't have unit tests for scheduler drivers. Thanks, Jie Yu

Re: Review Request 29823: Added accept offers to the old scheduler API.

2015-01-13 Thread Jie Yu
; "acceptOffers is unimplemented"; > > error("acceptOffers is unimplemented"); > > ``` Done. - Jie --- This is an automatically generated e-mail. To reply, visit: https://re

Re: Review Request 29822: Style fixes for the scheduler header.

2015-01-13 Thread Jie Yu
we can do it while we are at other stuffs. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29822/#review67742 --- On Jan. 12, 20

Re: Review Request 29822: Style fixes for the scheduler header.

2015-01-13 Thread Jie Yu
generated e-mail. To reply, visit: https://reviews.apache.org/r/29822/#review67737 --- On Jan. 12, 2015, 9:41 p.m., Jie Yu wrote: > > --- > This is an automatically generat

Review Request 29823: Added accept offers to the old scheduler API.

2015-01-12 Thread Jie Yu
--- make check Thanks, Jie Yu

Review Request 29822: Style fixes for the scheduler header.

2015-01-12 Thread Jie Yu
Description --- Style fixes for the scheduler header. Diffs - include/mesos/scheduler.hpp 42e4e279d059801cd85955fd04995b60051a2b5e Diff: https://reviews.apache.org/r/29822/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29785: Introduced an Accept Call for performing operations on Offers.

2015-01-12 Thread Jie Yu
r/29785/#comment111784> since offer_ids is an Array, probably use: offer_ids: [...] - Jie Yu On Jan. 12, 2015, 8:40 p.m., Ben Mahler wrote: > > --- > This is an automatically generated e-mail. To repl

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-12 Thread Jie Yu
-mail. To reply, visit: https://reviews.apache.org/r/29688/#review67519 ------- On Jan. 12, 2015, 6:46 p.m., Jie Yu wrote: > > --- > This is an automatically generated e-

Re: Review Request 29785: Introduced an Accept Call for performing operations on Offers.

2015-01-12 Thread Jie Yu
> On Jan. 9, 2015, 11:03 p.m., Jie Yu wrote: > > include/mesos/mesos.proto, line 624 > > <https://reviews.apache.org/r/29785/diff/1/?file=815287#file815287line624> > > > > Why 'RESERVE', not 'RESERVE_RESOURCES'? > > Ben Mahler wrot

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-12 Thread Jie Yu
rizer/isolators/disk_quota.cpp PRE-CREATION src/slave/containerizer/mesos/containerizer.cpp 5c014ebe360b9527b3edd505d47e57a4d5ce5c52 src/slave/flags.hpp f1b8dfbb7391167b67a9498561742aa9ab9089a6 Diff: https://reviews.apache.org/r/29688/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29689: Added tests for verifying DiskUsageChecker.

2015-01-12 Thread Jie Yu
fc0c3227466ccf364353a739fec8d9532ea3c683 src/tests/disk_quota_tests.cpp PRE-CREATION Diff: https://reviews.apache.org/r/29689/diff/ Testing --- make check Thanks, Jie Yu

Review Request 29815: Used resources instead of resource in Limitation.

2015-01-12 Thread Jie Yu
/containerizer/isolators/cgroups/mem.cpp 71f4b9b3885ccb1c9e5ad589e65be06045030f19 src/slave/containerizer/mesos/containerizer.cpp 5c014ebe360b9527b3edd505d47e57a4d5ce5c52 Diff: https://reviews.apache.org/r/29815/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29796: Added initial operational guide to document master quorum changes.

2015-01-10 Thread Jie Yu
gt; maybe we should emphasize that the new master has no log? - Jie Yu On Jan. 10, 2015, 10:43 p.m., Ben Mahler wrote: > > --- > This is an automatically generated e-mail. To reply, visit: >

Re: Review Request 29689: Added tests for verifying DiskUsageChecker.

2015-01-09 Thread Jie Yu
ssed seeing (3) from the next review, ignore. In fact, on os x, both 1) and 2) are not true (just tested that). - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29689/#review67263 ---

Re: Review Request 29785: Introduced an Accept Call for performing operations on Offers.

2015-01-09 Thread Jie Yu
785/#comment111584> Why 'RESERVE', not 'RESERVE_RESOURCES'? - Jie Yu On Jan. 9, 2015, 10:56 p.m., Ben Mahler wrote: > > --- > This is an automatically generated e-mail. To reply, visit: &

Re: Review Request 29690: Added an integration test for enforcing disk quota.

2015-01-09 Thread Jie Yu
-CREATION Diff: https://reviews.apache.org/r/29690/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29689: Added tests for verifying DiskUsageChecker.

2015-01-09 Thread Jie Yu
fc0c3227466ccf364353a739fec8d9532ea3c683 src/tests/disk_quota_tests.cpp PRE-CREATION Diff: https://reviews.apache.org/r/29689/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29690: Added an integration test for enforcing disk quota.

2015-01-09 Thread Jie Yu
t: https://reviews.apache.org/r/29690/#review67283 ------- On Jan. 8, 2015, 12:45 a.m., Jie Yu wrote: > > --- > This is an automatically generated e-

Re: Review Request 29689: Added tests for verifying DiskUsageChecker.

2015-01-09 Thread Jie Yu
> On Jan. 8, 2015, 8:03 a.m., Timothy Chen wrote: > > src/tests/disk_quota_tests.cpp, line 55 > > <https://reviews.apache.org/r/29689/diff/1/?file=810332#file810332line55> > > > > Why would this be less? > > Jie Yu wrote: > This is a bit tric

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-09 Thread Jie Yu
/isolators/disk_quota.cpp PRE-CREATION src/slave/containerizer/mesos/containerizer.cpp 5c014ebe360b9527b3edd505d47e57a4d5ce5c52 src/slave/flags.hpp f1b8dfbb7391167b67a9498561742aa9ab9089a6 Diff: https://reviews.apache.org/r/29688/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-09 Thread Jie Yu
is behavior > > could be changed to be configurable so it should not be assumed in any > > isolator. > > Jie Yu wrote: > Since Limitation has already been set, there is no point continuing > monitoring the disk usage, right? Anyway, we need to revisit this once we &g

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-08 Thread Jie Yu
/isolators/disk_quota.cpp PRE-CREATION src/slave/containerizer/mesos/containerizer.cpp 5c014ebe360b9527b3edd505d47e57a4d5ce5c52 src/slave/flags.hpp f1b8dfbb7391167b67a9498561742aa9ab9089a6 Diff: https://reviews.apache.org/r/29688/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29687: Added executor directory to RunState.

2015-01-08 Thread Jie Yu
592182b21ae2700c627f180db38ca5dc1b3c9e8a src/slave/state.cpp 9de381528fc320fbbfb662325a1275f0b457225b Diff: https://reviews.apache.org/r/29687/diff/ Testing --- make check Thanks, Jie Yu

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-08 Thread Jie Yu
tainer after the Limitation so it should wait until cleanup() before > > stopping everything. See above. I added TODO's here. - Jie --- This is an automatically generated e-mail. To reply, visit: https

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-08 Thread Jie Yu
ique_ptr? :) Used Owned. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29688/#review67239 --- On Jan. 8, 2015, 12:45 a.m., Jie Yu wrote: > > -

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-08 Thread Jie Yu
Choose not to expose it. - Jie --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/29688/#review67176 --- On Jan.

Re: Review Request 29688: Added DiskQuotaIsolator to enforce disk quota.

2015-01-08 Thread Jie Yu
-------- On Jan. 8, 2015, 12:45 a.m., Jie Yu wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/29688/ >

Re: Review Request 29687: Added executor directory to RunState.

2015-01-08 Thread Jie Yu
ps://reviews.apache.org/r/29687/#review67299 ----------- On Jan. 8, 2015, 12:44 a.m., Jie Yu wrote: > > --- > This is an automatically generated e-mail.

<    3   4   5   6   7   8   9   10   11   12   >