Description
My application uses two undertow containers. One for regular business logic and the second one for actuators. There are two listeners at ports: 8080 and 8090 (actuators set via management.port
property).
Observed behavior: in the access log we can see entries coming from both containers. Regular traffic and requests for /health
resources that come from load-balancer.
Issue: at midnight when access log rotation takes place (at least we observe that at midnight) we ended up with three files: access.log
, access-log.{date}.log
and access-log.{date}-1.log
.
Health entries are still visible in access.log and the file is growing. Regular traffic entries go to the last file.
It seems like there's a race condition when two containers attempt to rotate one common access.log file.
Spring version 1.3.0.RC1 and Undertow-core-1.3.0.Final