The issue occurs due to the fact that two different mechanisms open the .elg files for 'Write' operation.
- When the daemon is under debug, the log file (.elg) will be rotated by the internal TDERROR mechanism.
- However, there is another mechanism - a Task 'RotateLogs' registered under the CPD daemon that is called every 100 sec. to rotate a log file, if it reached the maximum configured size.
[Expert@FW]# cpd_sched_config print
Probably there are two different mechanisms for log rotation because of historical reasons - the TDERROR mechanism was added later...