Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.9.0, 3.0.0-alpha2
-
None
-
Reviewed
Description
Dispatcher.DISPATCHER_EXIT_ON_ERROR_KEY (yarn.dispatcher.exit-on-error) always be true no matter what value in configuration files. This misleads users. Two solutions:
- Remove the configuration item and provide a method to allow exitOnDispatchException/shouldExitOnError to be false to enable related unit tests. There is no need for false value in a real daemon since daemons should crash if its dispatcher quit.
- Make it default true instead of false, so that we don't need to hard code it to be true in RM and NM, it is still configurable, and also provide method to enable related unit tests.
Other than that, the code around it needs to refactor. public static final for a variable of interface isn't necessary, and YARN related configure item should be in class YarnConfiguration.
Attachments
Attachments
Issue Links
- relates to
-
MAPREDUCE-3634 All daemons should crash instead of hanging around when their EventHandlers get exceptions
- Resolved