[LTP] [PATCH] syslog: fix sporadic failures due to rate-limitting
Li Wang
liwang@redhat.com
Wed Jul 31 11:02:25 CEST 2019
Hi Jan,
> Have you followed all the steps?
> - stop rsyslog
> - delete imjournal.state
> - run kmsg01 couple times
> - run syslog01
Finally, I run more times for ksm01 to make a large backlog of
messages then reproduced it. After applying your patch, the problem
does not appear anymore. So, ACK for this patch.
---------- Reproduce Log -----------
# cat runtest/wangli
kmsg01 kmsg01
kmsg01 kmsg01
kmsg01 kmsg01
kmsg01 kmsg01
kmsg01 kmsg01
syslog01 syslog01
# systemctl stop rsyslog; rm -fr /var/lib/rsyslog/*; ./runltp -f wangli
syslog01 FAIL
# journalctl
...
Jul 31 04:53:18 hp-dl385pg8-11.rhts.eng.pek2.redhat.com
rsyslogd[3336]: imjournal from <hp-dl385pg8-11:restraintd>: begin to
drop messages due to rate-limiting
Jul 31 04:53:19 hp-dl385pg8-11.rhts.eng.pek2.redhat.com
syslogtst[3341]: syslogtst: mail info test.
Jul 31 04:53:21 hp-dl385pg8-11.rhts.eng.pek2.redhat.com systemd[1]:
Stopping System Logging Service...
Jul 31 04:53:21 hp-dl385pg8-11.rhts.eng.pek2.redhat.com
rsyslogd[3336]: imjournal: 63528 messages lost due to rate-limiting
--
Regards,
Li Wang
More information about the ltp
mailing list