Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
Impala 4.0.0
-
None
-
ghx-label-1
Description
There are several places where we use FLAGS_log_filename as glob pattern:
https://github.com/apache/impala/8eeb000/master/be/src/common/logging.cc#L104
https://github.com/apache/impala/8eeb000/master/be/src/common/logging.cc#L340
If FLAGS_log_filename is not set, it will be initialized with google::ProgramInvocationShortName(), which will lead to correct behavior of DeleteOldLogs() and GetLatestCanonicalLogPath(). But if user set custom value to this flag, the glob pattern will mistakenly target the symlink instead of the actual log files. This can be a problem in minicluster where we start multiple impalad sharing the same log dir.
We should replace them with google::ProgramInvocationShortName().
Attachments
Issue Links
- causes
-
IMPALA-12595 Allow automatic removal of old logs from previous PID
- Resolved