Review Request 64487: Passed the message directly to the Master::registerSlave handler.

2017-12-10 Thread Jie Yu
--- make check Thanks, Jie Yu

Re: Review Request 64477: Refactored agent to keep track of local resource providers.

2017-12-10 Thread Jie Yu
sting --- make check Thanks, Jie Yu

Re: Review Request 64439: Added `LocalResourceProviderDaemon` methods to modify configs.

2017-12-08 Thread Jie Yu
nation. Maybe we should create a `staging` directory under `configDir` and write the tmp file there and then do a rename. That also means that the daemon has to skip the `staging` directory. - Jie Yu On Dec. 8, 2017, 10 p.m., Chun-Hung Hsiao

Re: Review Request 64438: Implemented API for modifying resource provider configs.

2017-12-08 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64438/#review193314 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 2:58 a.m., Chun

Re: Review Request 64440: Added `MODIFY_RESOURCE_PROVIDER_CONFIG` authorization.

2017-12-08 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64440/#review193311 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 3:59 a.m., Chun

Re: Review Request 64468: SLRP reconciliation only preserves missing resources that are converted.

2017-12-08 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64468/#review193310 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 9:59 p.m., Chun

Re: Review Request 64437: Added missing filesystem isolation for SLRP tests.

2017-12-08 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64437/#review193308 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 5:54 a.m., Chun

Re: Review Request 64441: Removed a CHECK that should not be there in SLRP.

2017-12-08 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64441/#review193307 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 4:56 a.m., Chun

Review Request 64477: Refactored agent to keep track of local resource providers.

2017-12-08 Thread Jie Yu
e.cpp 373e393ca1e7c0c30c3474cc9e630e25ad92f235 src/tests/resource_provider_manager_tests.cpp a6eb4c9a303780029244e069bdf550a8cd9c7bb4 Diff: https://reviews.apache.org/r/64477/diff/1/ Testing --- make check Thanks, Jie Yu

Re: Review Request 64457: Instructed frameworks to avoid setting the offer operation 'id' field.

2017-12-08 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64457/#review193273 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 6:53 p.m., Greg

Re: Review Request 64440: Added `MODIFY_RESOURCE_PROVIDER_CONFIG` authorization.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64440/#review193222 --- please add some unit test - Jie Yu On Dec. 8, 2017, 3:59 a.m

Re: Review Request 63901: Added operator API to update and remove resource provider configs.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63901/#review193221 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 2:56 a.m., Chun

Re: Review Request 64437: Added missing filesystem isolation for SLRP tests.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64437/#review193220 --- Please make sure the test file only build on linux. - Jie Yu

Re: Review Request 64430: Only passed agent's resource version in top-level UpdateSlaveMessage.

2017-12-07 Thread Jie Yu
egory` - Jie Yu On Dec. 8, 2017, 12:17 a.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.a

Re: Review Request 64424: Removed 'total' from 'UpdateSlaveMessage'.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64424/#review193217 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 12:17 a.m

Re: Review Request 64423: Explicitly passed resource-provider information in UpdateSlaveMessage.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64423/#review193218 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 12:17 a.m

Re: Review Request 64430: Only passed agent's resource version in top-level UpdateSlaveMessage.

2017-12-07 Thread Jie Yu
perations from all providers as well as agent default resources, while message.offer_operations is only for agent default resources? - Jie Yu On Dec. 8, 2017, 12:17 a.m., Benjamin Bannier wrote: > > --- > This is an automatica

Re: Review Request 64422: Added explicit resource provider information to 'UpdateSlaveMessage'.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64422/#review193215 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 12:17 a.m

Re: Review Request 64299: Passed versions when launching tasks.

2017-12-07 Thread Jie Yu
(patched) <https://reviews.apache.org/r/64299/#comment271751> kill this line? - Jie Yu On Dec. 7, 2017, 7:04 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To reply,

Re: Review Request 64425: Fixed 'getResourceProviderId' for operations without resources.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64425/#review193205 --- Ship it! Ship It! - Jie Yu On Dec. 8, 2017, 12:17 a.m

Re: Review Request 64298: Added ResourceVersion to RunTask and RunTaskGroup messages.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64298/#review193131 --- Ship it! Ship It! - Jie Yu On Dec. 4, 2017, 1:12 p.m

Re: Review Request 63555: Publish resource provider resources before container launch or update.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63555/#review193187 --- Ship it! Ship It! - Jie Yu On Dec. 7, 2017, 9:33 a.m., Chun

Re: Review Request 64422: Added explicit resource provider information to 'UpdateSlaveMessage'.

2017-12-07 Thread Jie Yu
) <https://reviews.apache.org/r/64422/#comment271651> Should we change this to `optional bytes resource_version_uuid`? - Jie Yu On Dec. 7, 2017, 5:49 p.m., Benjamin Bannier wrote: > > --- > This is an automatically g

Re: Review Request 63388: Handling offer operations in storage local resource provider.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63388/#review193180 --- Ship it! Ship It! - Jie Yu On Dec. 7, 2017, 6:38 p.m., Chun

Re: Review Request 64398: Renamed the resource provider PUBLISH event to PUBLISH_RESOURCES.

2017-12-07 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64398/#review193185 --- Ship it! Ship It! - Jie Yu On Dec. 7, 2017, 10:20 p.m

Re: Review Request 64422: Added explicit resource provider information to 'UpdateSlaveMessage'.

2017-12-07 Thread Jie Yu
> On Dec. 7, 2017, 6:37 p.m., Jie Yu wrote: > > src/messages/messages.proto > > Lines 693-701 (original), 693-701 (patched) > > <https://reviews.apache.org/r/64422/diff/1/?file=1910528#file1910528line693> > > > > So the idea for these fields are for ag

Re: Review Request 64423: Explicitly passed resource-provider information in UpdateSlaveMessage.

2017-12-07 Thread Jie Yu
) <https://reviews.apache.org/r/64423/#comment271664> Let's use `previousOversubscribedResources` here to be more explicit src/slave/slave.cpp Lines 6850 (patched) <https://reviews.apache.org/r/64423/#comment271660> fix style issue - Jie Y

Re: Review Request 64422: Added explicit resource provider information to 'UpdateSlaveMessage'.

2017-12-07 Thread Jie Yu
> On Dec. 7, 2017, 6:37 p.m., Jie Yu wrote: > > src/messages/messages.proto > > Lines 693-701 (original), 693-701 (patched) > > <https://reviews.apache.org/r/64422/diff/1/?file=1910528#file1910528line693> > > > > So the idea for these fields are for ag

Re: Review Request 64422: Added explicit resource provider information to 'UpdateSlaveMessage'.

2017-12-07 Thread Jie Yu
gt; why optional? src/messages/messages.proto Lines 720-721 (patched) <https://reviews.apache.org/r/64422/#comment271648> any reason those are optional? - Jie Yu On Dec. 7, 2017, 5:49 p.m., Benjamin Bannier wrote: > >

Re: Review Request 64299: Passed versions when launching tasks.

2017-12-07 Thread Jie Yu
too. I saw this code being duplicated three times in this function :( - Jie Yu On Dec. 4, 2017, 1:12 p.m., Benjamin Bannier wrote: > > --- > This is an automatically generated e-mail. To reply, visit:

Re: Review Request 64400: Changed the resource provider OPERATION event to APPLY_OFFER_OPERATION.

2017-12-06 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64400/#review193090 --- Ship it! Ship It! - Jie Yu On Dec. 7, 2017, 3:14 a.m., Greg

Re: Review Request 64399: Renamed a resource provider call to UPDATE_PUBLISH_RESOURCES_STATUS.

2017-12-06 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64399/#review193089 --- Ship it! Ship It! - Jie Yu On Dec. 7, 2017, 3:13 a.m., Greg

Re: Review Request 63555: Publish resource provider resources before container launch or update.

2017-12-06 Thread Jie Yu
/reviews.apache.org/r/63555/#comment271578> I would just use sleep 1000 here. src/tests/slave_tests.cpp Lines 8961-8964 (patched) <https://reviews.apache.org/r/63555/#comment271581> Can we call `subscribedDefault`? -

Re: Review Request 63390: Create/destroy volume test for storage local resource provider.

2017-12-06 Thread Jie Yu
't have to adjust the tests when we switch to v3 (deprecating v1) - Jie Yu On Dec. 6, 2017, 8:06 p.m., Chun-Hung Hsiao wrote: > > --- > This is an automatically generate

Re: Review Request 64335: Made "agent_features" flag available on non-Linux systems.

2017-12-06 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64335/#review193072 --- Ship it! Ship It! - Jie Yu On Dec. 5, 2017, 10:59 a.m., Jan

Re: Review Request 63971: Defined a module interface for translating volume profiles.

2017-12-06 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63971/#review193065 --- Ship it! Ship It! - Jie Yu On Dec. 6, 2017, 11:50 p.m

Re: Review Request 63971: Defined a module interface for translating volume profiles.

2017-12-06 Thread Jie Yu
> On Dec. 6, 2017, 6:37 p.m., Jie Yu wrote: > > include/mesos/resource_provider/volume_profile.hpp > > Lines 92 (patched) > > <https://reviews.apache.org/r/63971/diff/3/?file=1909252#file1909252line92> > > > > We chatted about having an ability to de

Re: Review Request 63971: Defined a module interface for translating volume profiles.

2017-12-06 Thread Jie Yu
> On Dec. 6, 2017, 8:04 p.m., Jie Yu wrote: > > include/mesos/resource_provider/volume_profile.hpp > > Lines 104-105 (patched) > > <https://reviews.apache.org/r/63971/diff/3/?file=1909252#file1909252line104> > > > > Do we intend to use this module

Re: Review Request 63971: Defined a module interface for translating volume profiles.

2017-12-06 Thread Jie Yu
> On Dec. 6, 2017, 8:04 p.m., Jie Yu wrote: > > include/mesos/resource_provider/volume_profile.hpp > > Lines 104-105 (patched) > > <https://reviews.apache.org/r/63971/diff/3/?file=1909252#file1909252line104> > > > > Do we intend to use this module

Re: Review Request 63971: Defined a module interface for translating volume profiles.

2017-12-06 Thread Jie Yu
(patched) <https://reviews.apache.org/r/63971/#comment271552> I'd suggest we use `ResourceProviderInfo` here so that some module might choose to match based on provider ID. - Jie Yu On Dec. 6, 2017, 11:37 p.m., Jose

Re: Review Request 64385: Used more restrictive mount flags for host network bind mounts.

2017-12-06 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64385/#review193054 --- Ship it! Ship It! - Jie Yu On Dec. 6, 2017, 4:33 p.m

Re: Review Request 63022: Imported and reconcile resources from CSI plugins.

2017-12-06 Thread Jie Yu
(patched) <https://reviews.apache.org/r/63022/#comment271532> We can use `protobuf::createOfferOperation` here. - Jie Yu On Dec. 6, 2017, 7:50 p.m., Chun-Hung Hsiao wrote: > > --- > This is an automatically generated e

Re: Review Request 63971: Defined a module interface for translating volume profiles.

2017-12-06 Thread Jie Yu
> On Dec. 6, 2017, 8:04 p.m., Jie Yu wrote: > > include/mesos/resource_provider/volume_profile.hpp > > Lines 104-105 (patched) > > <https://reviews.apache.org/r/63971/diff/3/?file=1909252#file1909252line104> > > > > Do we intend to use this module

Re: Review Request 63971: Defined a module interface for translating volume profiles.

2017-12-06 Thread Jie Yu
ique per RP. Some distribution might choose to do cluster wide unique, but that's their choice. With that in mind, maybe include ResourceProviderInfo in the request? - Jie Yu On Dec. 5, 2017, 10:06 p.m., Joseph Wu wrote: > > --

Review Request 64389: Used a wrapper message for storage resource provider info.

2017-12-06 Thread Jie Yu
/type_utils.cpp 1b466fcfd133b6fd0067668c7ba54d1ce80c8702 src/resource_provider/storage/provider.cpp d35b0d02992e3730ca47906b34c21e1ba9c653e7 src/v1/mesos.cpp 2c81b37468dc27da863eb8a56a213436b94b73de Diff: https://reviews.apache.org/r/64389/diff/1/ Testing --- make check Thanks, Jie Yu

Re: Review Request 64352: Added default VolumeProfile module implementation.

2017-12-06 Thread Jie Yu
ailure)? That means no resource will be sent out using default volume profile adaptor? That makes me wondering why we need a default volume provider adaptor. Can you just make the uri voluem profiler adaptor the default? - Jie Yu On Dec. 5, 2017, 10:09 p.m., Joseph Wu

Re: Review Request 63971: Defined a module interface for translating volume profiles.

2017-12-06 Thread Jie Yu
org/r/63971/#comment271485> We chatted about having an ability to define a default profile. To support that, maybe `profile` here needs to be Optional? - Jie Yu On Dec. 5, 2017, 10:06 p.m., Joseph Wu wrote: > > --- > This is

Re: Review Request 64351: Moved generated CSI code into public directories.

2017-12-06 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64351/#review193012 --- Ship it! Ship It! - Jie Yu On Dec. 5, 2017, 10:05 p.m

Re: Review Request 63388: Handling offer operations in storage local resource provider.

2017-12-05 Thread Jie Yu
the interface is something we never do in other places. I'd suggest we keep track of a hashmap with key being the operation uuid. - Jie Yu On Dec. 5, 2017, 2:19 a.m., Chun-Hung Hsiao wrote: > > --- > This is an automatically

Re: Review Request 63387: Added publish/unpublish in storage local resource provider.

2017-12-05 Thread Jie Yu
src/resource_provider/storage/provider.cpp Lines 1636-1640 (patched) <https://reviews.apache.org/r/63387/#comment271326> DO you need this? src/resource_provider/storage/provider.cpp Lines 1704-1708 (patched) <https://reviews.apache.org/r/63387/#comment271327> Do you need th

Re: Review Request 63022: Imported and reconcile resources from CSI plugins.

2017-12-05 Thread Jie Yu
-Hung Hsiao wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/63022/ > ------- > > (Updated Dec. 5, 2017, 5:5

Re: Review Request 63022: Imported and reconcile resources from CSI plugins.

2017-12-05 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63022/#review192943 --- Ship it! Ship It! - Jie Yu On Dec. 5, 2017, 5:57 a.m., Chun

Re: Review Request 64146: Added offer operation update acknowledgement to the agent.

2017-12-05 Thread Jie Yu
) <https://reviews.apache.org/r/64146/#comment271237> `operation != nullptr` - Jie Yu On Dec. 5, 2017, 7:07 a.m., Greg Mann wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://re

Re: Review Request 64143: Added ACKNOWLEDGE event to the resource provider API.

2017-12-05 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64143/#review192891 --- Ship it! Ship It! - Jie Yu On Dec. 5, 2017, 7:33 a.m., Greg

Re: Review Request 64144: Made master acknowledge offer operation updates when 'id' isn't set.

2017-12-05 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64144/#review192890 --- Ship it! Ship It! - Jie Yu On Dec. 5, 2017, 7:06 a.m., Greg

Re: Review Request 63022: Imported and reconcile resources from CSI plugins.

2017-12-04 Thread Jie Yu
te a default profile. Please just not set the profile field. - Jie Yu On Dec. 5, 2017, 2:18 a.m., Chun-Hung Hsiao wrote: > > --- > This is an automatically generated e-mail.

Re: Review Request 63498: Allowed relative path in `Resource.disk.source.{path, mount}.root.

2017-12-04 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63498/#review192810 --- Ship it! Ship It! - Jie Yu On Dec. 5, 2017, 12:45 a.m

Re: Review Request 64320: Fixed the code to track resources under roles for offer operations.

2017-12-04 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64320/#review192805 --- Ship it! Ship It! - Jie Yu On Dec. 5, 2017, 1:46 a.m., Chun

Re: Review Request 63023: Added a test CSI plugin.

2017-12-04 Thread Jie Yu
) <https://reviews.apache.org/r/63023/#comment271001> 2 lines apart src/csi/utils.cpp Lines 68 (patched) <https://reviews.apache.org/r/63023/#comment271002> mount flag order is not important. - Jie Yu On Nov. 28, 2017, 6 a.m., Chun-Hung

Re: Review Request 64158: Used helper functions instead of switches for resource extraction.

2017-12-04 Thread Jie Yu
tps://reviews.apache.org/r/64158/#comment271093> Copy paste error? Please be extremely careful on this! - Jie Yu On Nov. 29, 2017, 1:52 p.m., Jan Schlicht wrote: > > --- > This is an automatically generated e-mail. To reply,

Re: Review Request 64272: Improved Windows isolators with `struct Info` abstraction.

2017-12-04 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64272/#review192753 --- Ship it! Ship It! - Jie Yu On Dec. 1, 2017, 11:37 p.m

Re: Review Request 63498: Allowed relative path in `Resource.disk.source.{path, mount}.root.

2017-12-04 Thread Jie Yu
(original), 1367-1368 (patched) <https://reviews.apache.org/r/63498/#comment270995> This might break some toolings. Let's call out this in the CHANGELOG and upgrade.md. - Jie Yu On Nov. 4, 2017, 1:13 a.m., Chun-Hung

Re: Review Request 63386: Added utility functions for resource provider API.

2017-12-04 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63386/#review192715 --- Ship it! Ship It! - Jie Yu On Dec. 4, 2017, 10:23 a.m

Re: Review Request 64294: Renamed `ACKNOWLEDGE_PUBLISH` to `UPDATE_PUBLISH_STATUS`.

2017-12-04 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64294/#review192713 --- Ship it! Ship It! - Jie Yu On Dec. 4, 2017, 10:23 a.m

Re: Review Request 63823: Initialized and subscribed storage local resource provider.

2017-12-01 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63823/#review192597 --- Ship it! Ship It! - Jie Yu On Dec. 1, 2017, 1:34 a.m., Chun

Re: Review Request 64075: Added the `ResourceProviderState` protobuf for resource providers.

2017-12-01 Thread Jie Yu
g the NOne() case here. Might worth printing a warning or info here. src/resource_provider/storage/provider.cpp Line 414 (original), 445 (patched) <https://reviews.apache.org/r/64075/#comment270844> Can you handle None() case here? or at least add some comment about why it's ok t

Re: Review Request 64075: Added the `ResourceProviderState` protobuf for resource providers.

2017-12-01 Thread Jie Yu
) <https://reviews.apache.org/r/64075/#comment270845> We should update CMake for this - Jie Yu On Dec. 1, 2017, 1:47 a.m., Chun-Hung Hsiao wrote: > > --- > This is an automatically generated e-mail. To reply,

Re: Review Request 64044: Recover controller and node services and clean up unused containers.

2017-12-01 Thread Jie Yu
/provider.cpp Lines 465 (patched) <https://reviews.apache.org/r/64044/#comment270747> Let's use csiPluginContainerInfo - Jie Yu On Dec. 1, 2017, 1:38 a.m., Chun-Hung Hsiao wrote: > > --- > This is an automatically genera

Re: Review Request 63021: Added `getService()` function to launch CSI plugins.

2017-12-01 Thread Jie Yu
) <https://reviews.apache.org/r/63021/#comment270822> Can you add a TODO here? This is a bit hacky way to get the v1 operator API endpoint. - Jie Yu On Dec. 1, 2017, 1:36 a.m., Chun-Hung Hsiao wrote: > > --- > This is a

Re: Review Request 64258: Included `stout/os/permissions.hpp` for the secret generator.

2017-12-01 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64258/#review192572 --- Ship it! Ship It! - Jie Yu On Dec. 1, 2017, 8:13 p.m

Re: Review Request 64257: Included `stout/os/realpath.hpp` where `os::realpath()` is used.

2017-12-01 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64257/#review192571 --- Ship it! Ship It! - Jie Yu On Dec. 1, 2017, 8:11 p.m

Re: Review Request 64256: Included `stout/os/realpath.hpp` where `os::realpath()` is used.

2017-12-01 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64256/#review192570 --- Ship it! Ship It! - Jie Yu On Dec. 1, 2017, 8:11 p.m

Re: Review Request 64255: Removed `os/realpath.hpp` from `posix/os.hpp`.

2017-12-01 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64255/#review192569 --- Ship it! Ship It! - Jie Yu On Dec. 1, 2017, 8:10 p.m

Re: Review Request 63021: Added `getService()` function to launch CSI plugins.

2017-12-01 Thread Jie Yu
) <https://reviews.apache.org/r/63021/#comment270749> I'd rename this to `getCSIPluginContainerInfo` - Jie Yu On Dec. 1, 2017, 1:36 a.m., Chun-Hung Hsiao wrote: > > --- > This is an automatically generated e-m

Re: Review Request 63021: Added `getService()` function to launch CSI plugins.

2017-12-01 Thread Jie Yu
c/resource_provider/storage/provider.cpp Lines 591 (patched) <https://reviews.apache.org/r/63021/#comment270735> You need to return after calling `fatal` - Jie Yu On Dec. 1, 2017, 1:36 a.m., Chun-Hung Hsiao wrote: > > --- >

Re: Review Request 63823: Initialized and subscribed storage local resource provider.

2017-11-30 Thread Jie Yu
src/resource_provider/storage/provider.cpp Lines 260 (patched) <https://reviews.apache.org/r/63823/#comment270597> why not return a failure if `realpath.isError`? - Jie Yu On Dec. 1, 2017, 1:34 a.m., Chun-Hung Hsiao wrote: > > --

Re: Review Request 63860: Windows: Mapped the Docker network info types.

2017-11-30 Thread Jie Yu
) <https://reviews.apache.org/r/63860/#comment270576> It's weird that user specifies HOST in the API, but we use "nat" instead. Why can't we use transparent? I don't quite get that from the comments. - Jie Yu On Nov. 27, 201

Re: Review Request 64236: Documented when ReregisterSlaveMessage.frameworks was introduced.

2017-11-30 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64236/#review192425 --- Ship it! Ship It! - Jie Yu On Dec. 1, 2017, 1:03 a.m

Re: Review Request 63277: Windows: Ported `Cpu` and `Mem` isolator tests.

2017-11-30 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63277/#review192422 --- Ship it! Ship It! - Jie Yu On Nov. 6, 2017, 11:19 p.m

Re: Review Request 63276: Windows: Added `Cpu` and `Mem` isolators.

2017-11-30 Thread Jie Yu
'd use ``` const Resources resources = containerConfig.resources(); ``` Using `{...}` is fragile if we add more fields to `Resources` object. src/slave/containerizer/mesos/isolators/windows/mem.hpp Lines 67-68 (patched) <https://reviews.apache.org/r/63276/#comment270560&g

Re: Review Request 64226: Added a `ns::supported` convenience API.

2017-11-30 Thread Jie Yu
upported == nsTypes;` src/linux/ns.cpp Lines 143 (patched) <https://reviews.apache.org/r/64226/#comment270516> We don't print glog warning in helpers. What if we want to use this in launch helper? I'd prefer return `Try` - Jie Yu On

Re: Review Request 64233: Removed some dead code in the master.

2017-11-30 Thread Jie Yu
eadc008fbdc53a95ab80584ffcd9b76a4a67a3c2 Diff: https://reviews.apache.org/r/64233/diff/2/ Changes: https://reviews.apache.org/r/64233/diff/1-2/ Testing --- make check Thanks, Jie Yu

Review Request 64233: Removed some dead code in the master.

2017-11-30 Thread Jie Yu
. Repository: mesos Description --- Removed some dead code in the master. Diffs - src/master/master.cpp eadc008fbdc53a95ab80584ffcd9b76a4a67a3c2 Diff: https://reviews.apache.org/r/64233/diff/1/ Testing --- make check Thanks, Jie Yu

Re: Review Request 64145: Added status update acknowledgement to resource provider manager.

2017-11-30 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64145/#review192397 --- Ship it! Ship It! - Jie Yu On Nov. 29, 2017, 6 p.m., Greg

Re: Review Request 64144: Made master acknowledge offer operation updates when 'id' isn't set.

2017-11-30 Thread Jie Yu
tps://reviews.apache.org/r/64144/#comment270508> Can you add a CHECK here asserting that the slave has RESOURCE_PROVIDER capability? - Jie Yu On Nov. 29, 2017, 5:47 p.m., Greg Mann wrote: > > --- > This is an automatically generated e

Re: Review Request 64146: Added offer operation update acknowledgement to the agent.

2017-11-30 Thread Jie Yu
usUpdate`. If there is a fail over, and the update is lost, the agent will reconcile with the master during re-registration and master will notice that and call removeOfferOperation there (in updateSlave handler). - Jie Yu On Nov. 29, 2017, 5:56

Re: Review Request 64143: Added ACKNOWLEDGE event to the resource provider API.

2017-11-30 Thread Jie Yu
t's make the code consistent on naming. - Jie Yu On Nov. 29, 2017, 5:50 p.m., Greg Mann wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https

Re: Review Request 64144: Made master acknowledge offer operation updates when 'id' isn't set.

2017-11-30 Thread Jie Yu
ed status (i.e., operation->statuses(latest)) and check if that's terminal. src/master/master.cpp Line 7490 (original), 7490 (patched) <https://reviews.apache.org/r/64144/#comment270495> Maybe make that a CHECK for now? - Jie Yu On

Re: Review Request 64142: Updated master ACCEPT handler to disallow offer operation feedback.

2017-11-30 Thread Jie Yu
(patched) <https://reviews.apache.org/r/64142/#comment270456> Can you move this inside the `else if` block below? - Jie Yu On Nov. 29, 2017, 5:42 p.m., Greg Mann wrote: > > --- > This is an automatically generated e

Re: Review Request 63804: Added plumbing for master to reconcile offer operations with agent.

2017-11-30 Thread Jie Yu
(patched) <https://reviews.apache.org/r/63804/#comment270448> Can you also update v1 proto? - Jie Yu On Nov. 30, 2017, 6:20 p.m., Greg Mann wrote: > > --- > This is an automatically generated e-mail. To reply,

Re: Review Request 63804: Added plumbing for master to reconcile offer operations with agent.

2017-11-30 Thread Jie Yu
/mesos/resource_provider/resource_provider.proto Lines 91 (patched) <https://reviews.apache.org/r/63804/#comment270447> s/master/resource provieer manager/ - Jie Yu On Nov. 30, 2017, 6:20 p.m., Greg Mann wrote: > > --

Re: Review Request 64218: Terminated the Slave first before cleaning up its dependencies.

2017-11-30 Thread Jie Yu
). Diffs (updated) - src/tests/cluster.cpp 4ff9faf4e5cae5bca4f050d6f2bc2c60d7ee4e6f Diff: https://reviews.apache.org/r/64218/diff/2/ Changes: https://reviews.apache.org/r/64218/diff/1-2/ Testing --- make check Thanks, Jie Yu

Review Request 64218: Terminated the Slave first before cleaning up its dependencies.

2017-11-30 Thread Jie Yu
luster.cpp 4ff9faf4e5cae5bca4f050d6f2bc2c60d7ee4e6f Diff: https://reviews.apache.org/r/64218/diff/1/ Testing --- make check Thanks, Jie Yu

Re: Review Request 64158: Used helper functions instead of switches for resource extraction.

2017-11-29 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64158/#review192238 --- Ship it! Ship It! - Jie Yu On Nov. 29, 2017, 1:52 p.m., Jan

Re: Review Request 64151: Added an agent endpoint to list resource providers.

2017-11-29 Thread Jie Yu
tps://reviews.apache.org/r/64151/#comment270262> Hum, i think we stop adding v0 operator APIs. We should instead add a v1 operator API `GET_RESOURCE_PROVIDERS` - Jie Yu On Nov. 29, 2017, 11:23 a.m., Jan Schlicht wrote: > > --- > This is a

Re: Review Request 64168: Introduced a 'OperationUUID' type.

2017-11-29 Thread Jie Yu
ne way is to use `Uuid`, or `UUIDInfo`. Or we just use `mesos::UUID` through out. - Jie Yu On Nov. 29, 2017, 5:07 p.m., Jan Schlicht wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https:

Re: Review Request 63997: Added a new allocator method to add resources to agents.

2017-11-29 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63997/#review192229 --- Ship it! Ship It! - Jie Yu On Nov. 29, 2017, 4:27 p.m

Re: Review Request 64136: Introduced an allocator helper function to track used resources.

2017-11-29 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/64136/#review192227 --- Ship it! Ship It! - Jie Yu On Nov. 29, 2017, 4:27 p.m

Re: Review Request 63843: Implemented a test of offer operation reconcilation.

2017-11-29 Thread Jie Yu
> On Nov. 29, 2017, 3:09 a.m., Jie Yu wrote: > > src/tests/slave_tests.cpp > > Lines 8900-8923 (patched) > > <https://reviews.apache.org/r/63843/diff/6/?file=1902759#file1902759line8900> > > > > It'll be nice to move this logic here to > &

Re: Review Request 63843: Implemented a test of offer operation reconcilation.

2017-11-29 Thread Jie Yu
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/63843/#review192223 --- Ship it! Ship It! - Jie Yu On Nov. 29, 2017, 4:27 p.m

<    1   2   3   4   5   6   7   8   9   10   >