[pgpool-hackers: 3992] Fix pgpoolLogger uses 100% cpu when log rotation is enabled
fangjun06608 at hundsun.com
fangjun06608 at hundsun.com
Wed Aug 11 15:39:37 JST 2021
Hi,
I found that when log rotation is enabled, the subprocess pgpoolLogger uses
100% cpu, and pgpool -m fast stop can work properly.
Following is an example conf:
log_truncate_on_rotation = on
log_rotation_age = 1d
log_rotation_size = 100MB
The reason is that the `timeout` pssed to select is not initialized
completely.
Text picked from man select(2):
Consider timeout to be undefined after select() returns.
Git patch is attached.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pgpool.net/pipermail/pgpool-hackers/attachments/20210811/3b2cc06e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-pgpoolLogger-uses-100-cpu-when-log-rotation-is-e.patch
Type: application/octet-stream
Size: 781 bytes
Desc: not available
URL: <http://www.pgpool.net/pipermail/pgpool-hackers/attachments/20210811/3b2cc06e/attachment.obj>
More information about the pgpool-hackers
mailing list