alptugay opened a new issue, #8619:
URL: https://github.com/apache/apisix/issues/8619

   ### Current Behavior
   
   When rotating log files, the log-rotate plugin uses shell.run() function 
which has a default timeout of 10 seconds. When rotating big log files this 
timeout is exceeded thus the tar command is being killed with SIGTERM. This 
causes the rotated files to be incomplete, and also the log files doesn't get 
removed.
   
   
   
![image](https://user-images.githubusercontent.com/23238365/210784599-e3fe100c-6fdc-420d-a2f0-117a10793cb6.png)
   
   
   ### Expected Behavior
   
   Logs should be rotated completely unless it takes more time than log rotate 
interval. Therefor the timeout of the shell.run() function should be the same 
as the interval value.
   
   ### Error Logs
   
   _No response_
   
   ### Steps to Reproduce
   
   Generate a log file (1GB or more) which takes more than 10 seconds to 
compress using `tar -cvf`
   Let the log rotate plugin work
   
   ### Environment
   
   - APISIX 2.15 but should be the same on v3


-- 
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]

Reply via email to