mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-15 12:50:41 +01:00
- bugfix: solved potential (temporary) stall of messages when the queue was almost empty and few new data added (caused testbench to sometimes hang!) - fixed some race condition in testbench - added more elaborate diagnostics to parts of the testbench - solved a potential race inside the queue engine
18 lines
575 B
Bash
Executable File
18 lines
575 B
Bash
Executable File
# Test for Linkedlist queue mode
|
|
# added 2009-05-20 by rgerhards
|
|
# This file is part of the rsyslog project, released under GPLv3
|
|
echo testing queue Linkedlist queue mode
|
|
source $srcdir/diag.sh init
|
|
source $srcdir/diag.sh startup linkedlistqueue.conf
|
|
|
|
# 40000 messages should be enough
|
|
source $srcdir/diag.sh injectmsg 0 40000
|
|
|
|
# terminate *now* (don't wait for queue to drain)
|
|
kill `cat rsyslog.pid`
|
|
|
|
# now wait until rsyslog.pid is gone (and the process finished)
|
|
source $srcdir/diag.sh wait-shutdown
|
|
source $srcdir/diag.sh seq-check 0 39999
|
|
source $srcdir/diag.sh exit
|