> On Oct. 16, 2017, 12:51 p.m., Peter Bacsko wrote: > > core/src/main/java/org/apache/oozie/action/hadoop/LauncherConfigurationFilter.java > > Lines 29 (patched) > > <https://reviews.apache.org/r/62936/diff/1/?file=1853366#file1853366line29> > > > > Should we come up with some better name? > > > > Like LauncherConfigurationProcessor or I don't know. Filter sound like > > we're removing stuff.
Renamed to `LauncherConfigurationInjector#inject()`. > On Oct. 16, 2017, 12:51 p.m., Peter Bacsko wrote: > > core/src/main/java/org/apache/oozie/action/hadoop/LauncherConfigurationFilter.java > > Lines 61 (patched) > > <https://reviews.apache.org/r/62936/diff/1/?file=1853366#file1853366line61> > > > > Can't this method be just simply static? > > > > I don't think we should always instantiate a class for the sake of a > > simple method invocation. I am against yet another method parameter (IMO the less the better), and in favor of having the `sourceConfiguration` as field. > On Oct. 16, 2017, 12:51 p.m., Peter Bacsko wrote: > > core/src/main/java/org/apache/oozie/action/hadoop/LauncherConfigurationFilter.java > > Lines 130-132 (patched) > > <https://reviews.apache.org/r/62936/diff/1/?file=1853366#file1853366line130> > > > > What's happening here? An override then a prepend? This part is refactored, but nevertheless, using hopefully better names and also method level Javadoc. > On Oct. 16, 2017, 12:51 p.m., Peter Bacsko wrote: > > core/src/main/java/org/apache/oozie/action/hadoop/LauncherConfigurationFilter.java > > Lines 134-136 (patched) > > <https://reviews.apache.org/r/62936/diff/1/?file=1853366#file1853366line134> > > > > Same here This part is refactored, but nevertheless, using hopefully better names and also method level Javadoc. - András ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62936/#review188120 ----------------------------------------------------------- On Oct. 12, 2017, 3:33 p.m., András Piros wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62936/ > ----------------------------------------------------------- > > (Updated Oct. 12, 2017, 3:33 p.m.) > > > Review request for oozie, Attila Sasvari, Peter Cseh, and Peter Bacsko. > > > Repository: oozie-git > > > Description > ------- > > OOZIE-2896 Ensure compatibility for existing LauncherMapper settings > > > Diffs > ----- > > core/src/main/java/org/apache/oozie/action/hadoop/JavaActionExecutor.java > 76d0daa4f7528de6fb3c8993bae4dd28b6f7865b > > core/src/main/java/org/apache/oozie/action/hadoop/LauncherConfigurationFilter.java > PRE-CREATION > core/src/main/resources/oozie-default.xml > 2389b993b7b1769521d6dd0c7386e99e7516210a > > core/src/test/java/org/apache/oozie/action/hadoop/TestJavaActionExecutor.java > a7bd357f8938d148a150db43135a7a8fe7f0da4c > > core/src/test/java/org/apache/oozie/action/hadoop/TestLauncherConfigurationFilter.java > PRE-CREATION > sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherAM.java > ee1a32ac9b071009e1dbe78396520d778f58bddc > > > Diff: https://reviews.apache.org/r/62936/diff/1/ > > > Testing > ------- > > JUnit tests: > > * `TestJavaActionExecutor` > * `TestLauncherConfigurationFilter` > > Functional tests: submit and run `examples/apps/java-main/workflow.xml` in > three modes: > > * only `oozie.launcher.` parameters are present: `oozie.launcher.` parameters > are passed through > * `oozie.launcher.` and override (`yarn.`, `mapreduce.`, and `mapred.`) > parameters are also present: `oozie.launcher.` parameters are passed through > * only override (`yarn.`, `mapreduce.`, and `mapred.`) parameters are > present: override parameters are passed through > > > Thanks, > > András Piros > >
