Details
Description
The AggregatedLogDeletionService class in the Hadoop YARN framework is responsible for managing log aggregation and deletion. However, if the configuration parameter yarn.log-aggregation-enable is not set to true, the log aggregation service is disabled by default without any notification to the end-user. This can lead to confusion, especially for users who are unfamiliar with the configuration details but expect the service to be active. To improve user experience and avoid potential issues caused by unintentional misconfigurations, it is important to provide clear logging information when the service is disabled.
Expected Behavior:
When the yarn.log-aggregation-enable parameter is set to false (the default value), the system should log an informative message indicating that the log aggregation service is not enabled. This will help users recognize the issue and adjust the configuration accordingly.
How-to-Fix:
We propose to expose the information about the service status by adding logging statements. When the log aggregation service is not enabled due to the yarn.log-aggregation-enable parameter being set to false, a log message should be generated to inform the user.