gavinchou opened a new pull request, #32116:
URL: https://github.com/apache/doris/pull/32116

   The log file names are in the format fe.log.${date}-${index}, e.g.
   ```
   fe.log.20240311-1
   fe.log.20240311-2
   fe.log.20240311-3
   ...
   ```
   In the previous, fe.log/fe.audit.log will be renamed to 
fe.log.xxx-1/fe.audit.log.xxx-1 with the minimum index `1` when they reach 
rotation size. e.g.
   ```
   fe.log.20240311-1 -> fe.log.20240311-2
   fe.log.20240311-2 -> fe.log.20240311-3
   fe.log.20240311-3 -> fe.log.20240311-4
   fe.log            -> fe.log.20240311-1
   ```
   
   there are some drawbacks
   1. log4j needs to rename all existing rotated log to spare the index `1`
   2. it's hard to deal with the duplicated names, because every time the log 
rotates, it starts from index `1`
   
   After this change, the log will rename to a file name with larger index 
instead of `1`. e.g. when rotate
   ```
   fe.log.20240311-1
   fe.log.20240311-2
   fe.log.20240311-3
   fe.log -> fe.log.20240311-4
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to