Commit Graph
7 Commits
Author SHA1 Message Date
John Sully e1fde4a814 Module test reliability
Former-commit-id: c8edabc7effdc4120fc97cc78e8335f358671d8c
2021-02-01 22:21:49 +00:00
Wen Hui d3f36e93a9 Add Swapdb Module Event (#7804)
(cherry picked from commit 0db3223bc6)
2020-10-27 09:12:01 +02:00
Oran Agra 3a4ee4b6d6 module hook for master link up missing on successful psync (#7584)
besides, hooks test was time sensitive. when the replica managed to
reconnect quickly after the client kill, the test would fail

(cherry picked from commit c5d85c69c7)
2020-09-01 09:27:58 +03:00
Oran Agra 58b256bd46 try to fix an unstable test (module hook for loading progress)
there were two lssues, one is taht BGREWRITEAOF failed since the initial one was still in progress
the solution for this one is to enable appendonly from the server startup so there's no initial aofrw.

the other problem was 0 loading progress events, theory is that on some
platforms a sleep of 1 will cause a much greater delay due to the context
switch, but on other platform it doesn't. in theory a sleep of 100 micro
for 1k keys whould take 100ms, and with hz of 500 we should be gettering
50 events (one every 2ms). in practise it doesn't work like that, so trying
to find a sleep that would be long enough but still not cause the test to take
too long.
2019-11-19 15:01:51 +02:00
Oran Agra 68c6aacf3b Modules hooks: complete missing hooks for the initial set of hooks
* replication hooks: role change, master link status, replica online/offline
* persistence hooks: saving, loading, loading progress
* misc hooks: cron loop, shutdown, module loaded/unloaded
* change the way hooks test work, and add tests for all of the above

startLoading() now gets flag indicating what is loaded.
stopLoading() now gets an indication of success or failure.
adding startSaving() and stopSaving() with similar args and role.
2019-10-29 17:59:09 +02:00
antirez 3bd7f715c8 Modules hooks: test flush event. 2019-10-24 10:51:03 +02:00
antirez 51b680be42 Modules hooks: initial Tcl test file. 2019-10-24 10:41:25 +02:00