2718 Commits

Author SHA1 Message Date
Rainer Gerhards
f53aa966e1 solved a race condition 2009-07-07 12:09:41 +02:00
Rainer Gerhards
53b055b6aa moved zip part to writer thread
... this is necessary in preparation for the final solution (we need
to have a "unified" writer). If it causes worse performance to have the
zip writher togehter with the synchronous write, we may do an async write...
2009-07-06 19:44:53 +02:00
Rainer Gerhards
e3040285db first shot at asynchronous stream writer with timeout capability
... seems to work on quick testing, but needs a far more testing
and improvement. Good milestone commit.
2009-07-06 16:38:09 +02:00
Rainer Gerhards
3250a710ab re-enabled a test 2009-07-03 18:19:11 +02:00
Rainer Gerhards
7c0ca75537 added yet another forgotten file... 2009-07-02 17:23:43 +02:00
Rainer Gerhards
90ed676c54 Merge branch 'master' into v5-devel
Conflicts:
	ChangeLog
	configure.ac
	doc/manual.html
2009-07-02 17:18:43 +02:00
Rainer Gerhards
e9c659c157 fixed missing file in distribution tarball 2009-07-02 17:17:32 +02:00
Rainer Gerhards
b37a1eb0f8 omfile itself no longer needs zlib 2009-07-02 17:06:00 +02:00
Rainer Gerhards
6322343eca Merge branch 'master' into v5-devel 2009-07-01 14:34:56 +02:00
Rainer Gerhards
de84a12f8a introduced the idea of detached properties
some things inside the message can be used over a large number of
messages and need to to be allocated and re-written every time. I now
begin to implement this as a "prop_t" object, first use for the inputName.
Some input modules are already converted, some others to go. Will do
a little performance check on the new method before I go further.

Also, this commit has some cleanup and a few bug fixes that prevented
compiliation in debug mode (I overlooked this as I did not compile
for debug, what I normally do, and the automatted test also does not
do that)
2009-06-29 16:53:26 +02:00
Rainer Gerhards
4822715a6e updated testbench to new init() behavior
the deferred activation of input modules broke part of the testbench -
but this was a testbench issue, not one of the patch
2009-06-29 11:37:29 +02:00
Rainer Gerhards
d22f240bc3 Merge branch 'master' into v5-devel 2009-06-26 14:09:15 +02:00
Rainer Gerhards
6be06d50e3 added some basic multithreading tests to testbench 2009-06-26 14:08:30 +02:00
Rainer Gerhards
675d46f5b5 cleanup (removed left-over from backport) 2009-06-24 10:29:57 +02:00
Rainer Gerhards
a3e512f65f Merge branch 'omfile' into v5-devel
Conflicts:
	runtime/rsyslog.h
2009-06-23 17:23:28 +02:00
Rainer Gerhards
b2fa740b9a optimized TAG handling 2009-06-23 17:14:42 +02:00
Rainer Gerhards
651bee9cf5 Merge branch 'omfile' into tmp
This was a complex manual merge, especially in action.c. So if
there occur some problems, this would be a good point to start
troubleshooting. I run a couple of tests before commiting and
they all went well.

Conflicts:
	action.c
	action.h
	runtime/queue.c
	runtime/queue.h
	runtime/wti.c
	runtime/wti.h
2009-06-22 15:12:35 +02:00
Rainer Gerhards
11cb1e008b some cleanup 2009-06-19 11:45:21 +02:00
Rainer Gerhards
77c992e215 fully optimized datetime module and enhanced test suite
tests for the various timestamp formats have been added
2009-06-19 11:30:57 +02:00
Rainer Gerhards
f33dd51c80 fixed abort condition with oversize tags
this was a regression I introduced this afternoon
2009-06-18 17:48:11 +02:00
Rainer Gerhards
8628312396 cleaned up/optimized raw message handling in msg object 2009-06-18 13:22:21 +02:00
Rainer Gerhards
d2d54013ae going forward in moving string-handling functions to new interface... 2009-06-17 15:22:13 +02:00
Rainer Gerhards
b5f3387357 Merge branch 'omfile' into v5-devel
Note that this was NOT a trivial merge, and there may be
some issues. This needs to be seen when we continue developing.

Conflicts:
	runtime/msg.h
	runtime/obj.h
	runtime/queue.c
	runtime/srUtils.h
	runtime/stream.c
	runtime/stream.h
	runtime/wti.c
	tests/Makefile.am
	tools/omfile.c
	tools/syslogd.c
2009-06-16 13:59:09 +02:00
Rainer Gerhards
1f874c2208 fixed small bug in testbench 2009-06-12 17:46:16 +02:00
Rainer Gerhards
6141845f75 re-enabled queue disk fsync test
... actually, it was not broken, but just very slow. I have now
reduced the number of test messages so that make check will not be
held for an extended period of time.
2009-06-10 18:24:46 +02:00
Rainer Gerhards
0290be816e fixed small nit in build system 2009-06-10 16:55:00 +02:00
Rainer Gerhards
6f4e3c4e4c restructered code in perparation for multiple rule set support
... this was long overdue, and I finlly tackeld it. It turned out to
be more complex than I initially thought. The next step now probably is
to actually implement multiple rule sets and the beauty that comes
with them.
2009-06-10 16:49:14 +02:00
Rainer Gerhards
9704f129f7 added capability to fsync() queue disk files for enhanced reliability
also adds speed, because you do no longer need to run the whole file
system in sync mode. New testbench and new config directives:
- $MainMsgQueueSyncQueueFiles
- $ActionQueueSyncQueueFiles
2009-06-09 19:00:18 +02:00
Rainer Gerhards
68f0ffb29a made dynafiles working again
now only stream class is utilized. ttys, pipes and outchannel functionality
is currently disabled. But the testbench worked again. Cleanup needed, will
do this with next commit (it may break things and I like to have this
milestone here).
2009-06-05 15:41:05 +02:00
Rainer Gerhards
cf12897376 Merge branch 'master' into v5-devel
Conflicts:
	runtime/rsyslog.h
	tests/Makefile.am
2009-06-04 10:19:47 +02:00
Rainer Gerhards
58e707b441 backported some of the v5 testbench
this permits us to keep a persistent test environment between
v4 and v5, most importantly using the same tools. As far as the
actual tests are concerned, some had issues. I had no time to check
if that was an issue with the test or an actual issue with the
v3/4 engine. Will do that at some later stage.
2009-06-04 09:57:45 +02:00
Rainer Gerhards
92d10abc1b Merge branch 'master' into v5-devel
Conflicts:
	ChangeLog
	runtime/rsyslog.h
2009-06-04 03:27:41 +02:00
Rainer Gerhards
4f742a8e32 added config switch --enable-testbench=no to turn off testbench 2009-06-03 07:51:47 +02:00
Rainer Gerhards
29cacc3c8a Merge branch 'master' into v5-devel
Conflicts:
	tests/Makefile.am
2009-05-28 19:01:34 +02:00
Rainer Gerhards
d7c98e7a6e Merge branch 'beta' into master
Conflicts:
	tests/Makefile.am
2009-05-28 18:34:17 +02:00
Rainer Gerhards
8d8befaeca Merge branch 'v3-stable' into beta
Conflicts:
	tests/Makefile.am
2009-05-28 18:23:53 +02:00
Rainer Gerhards
23dac82b68 small enhancement: config validation run now exits with code 1 if an error is detected.
This change is considered important but small enough
to apply it directly to the stable version. [But it is a border case,
the change requires more code than I had hoped. Thus I have NOT tried
to actually catch all cases, this is left for the current devel
releases, if necessary]
2009-05-28 17:59:11 +02:00
Rainer Gerhards
cbbf1586a2 some cleanup & fix make distcheck 2009-05-28 15:57:39 +02:00
Rainer Gerhards
7860e4a393 Merge branch 'master' into v5-devel
Conflicts:
	tests/Makefile.am
	tests/diag.sh
2009-05-28 15:34:25 +02:00
Rainer Gerhards
5514acb7ee fixed make distcheck 2009-05-28 15:19:03 +02:00
Rainer Gerhards
13d4a23e92 some more fixes for queue engine
The enhanced testbench now runs without failures, again
2009-05-28 14:24:37 +02:00
Rainer Gerhards
fc3e56941c fixing an issue during DA mode queue shutdown
also changed DA queue mode in that the regular workers now run
concurrently.
2009-05-28 11:57:30 +02:00
Rainer Gerhards
9517e19b64 preserving current changes
... in preparation for some larger changes - I need to apply some
serious design changes, as the current system does not play well
at all with ultra-reliable queues. Will do that in a totally new version.
2009-05-28 09:59:45 +02:00
Rainer Gerhards
d4564f8399 interim commit: working on failure cases
slightly improved situation, would like to save it before carrying on
2009-05-27 19:43:28 +02:00
Rainer Gerhards
affa217cc2 adapted testbench to new capabilities
... and now make check fails again, we have obviously found some new
bugs thanks to the additional cases
2009-05-27 12:52:28 +02:00
Rainer Gerhards
33316de49b Merge branch 'master' into ultra-reliable
Conflicts:
	tests/Makefile.am
	tests/diskqueue.sh
	tests/imtcp-multiport.sh
	tests/manytcp.sh
	tests/memq-persist.sh
2009-05-27 12:00:14 +02:00
Rainer Gerhards
74ed599ea6 fixed typo 2009-05-27 11:36:54 +02:00
Rainer Gerhards
a900a7c34b greatly enhanced testbench
The imdiag module now can very effectively inject messages, which also
frees us from uncertainties of tcp reception and processing. All shell
script based tests have been modularized, what makes it far easier to
create new tests. Also, the test bench now executes more reliable and
much faster, because we can now rely on actual engine information where
we previously did just a dumb sleep.
2009-05-27 11:29:47 +02:00
Rainer Gerhards
aa9426f683 solved design issue with queue termination
... and also improved the test suite. There is a design issue in the
v3 queue engine that manifested to some serious problems with the new
processing mode. However, in v3 shutdown may take eternally if a queue
runs in DA mode, is configured to preserve data AND the action fails and
retries immediately. There is no cure available for v3, it would
require doing much of the work we have done on the new engine. The window
of exposure, as one might guess from the description, is very small. That
is probably the reason why we have not seen it in practice.
2009-05-26 12:43:43 +02:00
Rainer Gerhards
210f43137d fixing some minor nits 2009-05-25 16:25:53 +02:00