mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 17:30:42 +01:00
simplified and thus speeded up the queue engine, also fixed some potential race conditions (in very unusual shutdown conditions) along the way. The threading model has seriously changes, so there may be some regressions. NOTE: the code passed basic tests, but there is still more work and testing to be done. This commit should be treated with care.
18 lines
588 B
Bash
Executable File
18 lines
588 B
Bash
Executable File
# Test for fixedArray queue mode
|
|
# added 2009-05-20 by rgerhards
|
|
# This file is part of the rsyslog project, released under GPLv3
|
|
echo \[arrayqueue.sh\]: testing queue fixedArray queue mode
|
|
source $srcdir/diag.sh init
|
|
source $srcdir/diag.sh startup arrayqueue.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 39999
|
|
source $srcdir/diag.sh exit
|