> On Nov. 21, 2014, 10:41 a.m., Maxim Khutornenko wrote: > > src/main/java/org/apache/aurora/scheduler/configuration/Resources.java, > > line 406 > > <https://reviews.apache.org/r/28193/diff/2/?file=772028#file772028line406> > > > > +1 on moving it closer to its only consumer. That's a general guideline > > we follow everywhere. > > Zameer Manji wrote: > I really think it should belong with the Resources class because it is > equally as useful as .sum in my opinion. If you disagree I will move it > closer to the consumer. > > Maxim Khutornenko wrote: > You can always move it there when there is a use case. Until then, it's > better follow our style any open up only those things that are used in more > than one place.
Done. > On Nov. 21, 2014, 10:41 a.m., Maxim Khutornenko wrote: > > src/main/java/org/apache/aurora/scheduler/configuration/Resources.java, > > line 196 > > <https://reviews.apache.org/r/28193/diff/2/?file=772028#file772028line196> > > > > This is only used in tests outside of this class. Consider reverting to > > private. > > Zameer Manji wrote: > I think using this constant in tests makes the tests a bit simplier. I > have added a '@VisibleForTesting' annotation to signifiy this. > > Maxim Khutornenko wrote: > Using @VisibleForTesting is rather an exception when you want to reuse > the complex definition. You already re-define SOME_EXECUTOR_OVERHEAD for test > purposes, why not do the same for NO_EXECUTOR_OVERHEAD? Done. - Zameer ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/28193/#review62575 ----------------------------------------------------------- On Nov. 21, 2014, 12:34 p.m., Zameer Manji wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/28193/ > ----------------------------------------------------------- > > (Updated Nov. 21, 2014, 12:34 p.m.) > > > Review request for Aurora, Maxim Khutornenko and Bill Farner. > > > Bugs: AURORA-928 > https://issues.apache.org/jira/browse/AURORA-928 > > > Repository: aurora > > > Description > ------- > > Mesos rejects tasks and executors that are zero sized. This patch > reconfigures Aurora to ensure no zero sized tasks and executors are created. > > > Diffs > ----- > > src/main/java/org/apache/aurora/scheduler/ResourceSlot.java > ed60447c798a97daceda4a3bba6ee9bcdcaedd0f > src/main/java/org/apache/aurora/scheduler/app/SchedulerMain.java > 40b652c679d8e340f585e28cbed066335d9d760d > src/main/java/org/apache/aurora/scheduler/configuration/Resources.java > 65c4b526c89a4d5607af4424ebe49bb48e296ae9 > src/main/java/org/apache/aurora/scheduler/mesos/MesosTaskFactory.java > bb227fd86f7c4c692f6ae2aef1c15a94913354b7 > src/test/java/org/apache/aurora/scheduler/app/SchedulerIT.java > 899416fceae498353880012b8a93491cff461064 > src/test/java/org/apache/aurora/scheduler/configuration/ResourcesTest.java > d6febb8998e05257cabe8d193cefa0b6c79f197e > > src/test/java/org/apache/aurora/scheduler/mesos/MesosTaskFactoryImplTest.java > 953c1edb6802d8983ab324aa56361e5c8fbe2e68 > > Diff: https://reviews.apache.org/r/28193/diff/ > > > Testing > ------- > > ./gradlew clean build -Pq > > > Thanks, > > Zameer Manji > >
