Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.0-beta
-
None
-
Reviewed
Description
The log aggregation root directory check first does an exists call followed by a getFileStatus call. That effectively stats the file twice. It should just use getFileStatus and catch FileNotFoundException to handle the non-existent case.
In addition we may consider caching the presence of the directory rather than checking it each time a node aggregates logs for an application.