----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/62936/#review188678 -----------------------------------------------------------
core/src/test/java/org/apache/oozie/action/hadoop/TestLauncherConfigurationInjector.java Lines 26 (patched) <https://reviews.apache.org/r/62936/#comment265696> There are a lot of hard-coded stuff in this class, especially test data. I know that we don't import the constant fields which define properties, but I think at least the test-specific stuff could be extracted to final fields, especially if it's repeated. core/src/test/java/org/apache/oozie/action/hadoop/TestLauncherConfigurationInjector.java Lines 130 (patched) <https://reviews.apache.org/r/62936/#comment265694> Are you intentionally using "true" here, and "false" above? core/src/test/java/org/apache/oozie/action/hadoop/TestLauncherConfigurationInjector.java Lines 132 (patched) <https://reviews.apache.org/r/62936/#comment265695> Instead of Integer.toString(4), wouldn't it be easier just to simply type "4"? Does this have an advantage? - Peter Bacsko On okt. 19, 2017, 10:04 de, András Piros wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/62936/ > ----------------------------------------------------------- > > (Updated okt. 19, 2017, 10:04 de) > > > 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/LauncherConfigurationInjector.java > PRE-CREATION > core/src/main/java/org/apache/oozie/service/ConfigurationService.java > a51933022c14ea4ce06a65cc3c123bed8a8f7f34 > core/src/main/resources/oozie-default.xml > 9ba8fd4a0d9dd5f0bd6a64af3724c2f910d86457 > > core/src/test/java/org/apache/oozie/action/hadoop/TestJavaActionExecutor.java > a7bd357f8938d148a150db43135a7a8fe7f0da4c > > core/src/test/java/org/apache/oozie/action/hadoop/TestLauncherConfigurationInjector.java > PRE-CREATION > sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherAM.java > ee1a32ac9b071009e1dbe78396520d778f58bddc > > > Diff: https://reviews.apache.org/r/62936/diff/4/ > > > 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 > >