(This page was automatically generated by the tools in the opsboy project on 22:13:50 16-May-2019 GMT.)

Detailed Test Report for lua-resty-upstream-healthcheck in linux x86_64 (hv)

Summary

Commit Testing Time Unexpected
Failures
Expected
Failures
Files Tests Elapsed Time
e834ec5e 2019-02-06 07:45:59 GMT 0 18 1 101 19 sec

LuaJIT

LuaJIT 2.1.0-beta3, commit 0e646b5

Compilation Errors

Unexpected Failures

(none)

Expected Failures

File Name Details
sanity.t TEST 3: health check (bad case), no listening port in a primary peer - grep_error_log_out (req 0) 'healthcheck: peer 127.0.0.1:7983 was checked to be not ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
warn(): healthcheck: peer 127.0.0.1:12355 is turned down after 2 failure(s)
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
'
doesn't match '(?^:^healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be not ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be not ok
warn\(\): healthcheck: peer 127\.0\.0\.1:12355 is turned down after 2 failure\(s\)
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
(?:healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be not ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
){2,4}$)'
sanity.t TEST 8: peers version upgrade (make down peers up) - grep_error_log_out (req 0) 'healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
upgrading peers version to 1
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be not ok
warn(): healthcheck: peer 127.0.0.1:12354 is turned down after 2 failure(s)
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
publishing peers version 2
healthcheck: peer 127.0.0.1:12354 was checked to be not ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be not ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be not ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be not ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be not ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
'
doesn't match '(?^:^upgrading peers version to 1
healthcheck: peer 127\.0\.0\.1:12354 was checked to be not ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12354 was checked to be not ok
warn\(\): healthcheck: peer 127\.0\.0\.1:12354 is turned down after 2 failure\(s\)
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
publishing peers version 2
(?:healthcheck: peer 127\.0\.0\.1:12354 was checked to be not ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
){3,5}$)'
sanity.t TEST 7: peers version upgrade (make up peers down) - grep_error_log_out (req 0) 'upgrading peers version to 1
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
warn(): healthcheck: peer 127.0.0.1:12355 is turned up after 2 success(es)
healthcheck: peer 127.0.0.1:12356 was checked to be ok
warn(): healthcheck: peer 127.0.0.1:12356 is turned up after 2 success(es)
publishing peers version 2
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
'
doesn't match '(?^:^upgrading peers version to 1
healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
warn\(\): healthcheck: peer 127\.0\.0\.1:12355 is turned up after 2 success\(es\)
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
warn\(\): healthcheck: peer 127\.0\.0\.1:12356 is turned up after 2 success\(es\)
publishing peers version 2
(?:healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
){2,4}$)'
sanity.t TEST 14: health check with ipv6 backend (good case), status ignored by default - grep_error_log_out (req 0) 'healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
publishing peers version 3
upgrading peers version to 1
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer [::1]:12355 was checked to be ok
healthcheck: peer [0:0::1]:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer [::1]:12355 was checked to be ok
healthcheck: peer [0:0::1]:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer [::1]:12355 was checked to be ok
healthcheck: peer [0:0::1]:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer [::1]:12355 was checked to be ok
healthcheck: peer [0:0::1]:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer [::1]:12355 was checked to be ok
healthcheck: peer [0:0::1]:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer [::1]:12355 was checked to be ok
healthcheck: peer [0:0::1]:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer [::1]:12355 was checked to be ok
healthcheck: peer [0:0::1]:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer [::1]:12355 was checked to be ok
healthcheck: peer [0:0::1]:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer [::1]:12355 was checked to be ok
healthcheck: peer [0:0::1]:12356 was checked to be ok
'
doesn't match '(?^:^healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer \[::1\]:12355 was checked to be ok
healthcheck: peer \[0:0::1\]:12356 was checked to be ok
(?:healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer \[::1\]:12355 was checked to be ok
healthcheck: peer \[0:0::1\]:12356 was checked to be ok
){3,7}$)'
sanity.t TEST 9: concurrency == 2 (odd number of peers) - grep_error_log_out (req 0) 'spawn a thread checking primary peers 0 to 2
check primary peers 3 to 4
check backup peer 0
spawn a thread checking primary peers 0 to 2
check primary peers 3 to 4
check backup peer 0
spawn a thread checking primary peers 0 to 2
check primary peers 3 to 4
check backup peer 0
spawn a thread checking primary peers 0 to 2
check primary peers 3 to 4
check backup peer 0
spawn a thread checking primary peers 0 to 2
check primary peers 3 to 4
check backup peer 0
spawn a thread checking primary peers 0 to 2
check primary peers 3 to 4
check backup peer 0
spawn a thread checking primary peers 0 to 2
check primary peers 3 to 4
check backup peer 0
'
doesn't match '(?^:^(?:spawn a thread checking primary peers 0 to 2
check primary peers 3 to 4
check backup peer 0
){4,6}$)'
sanity.t TEST 1: health check (good case), status ignored by default - grep_error_log_out (req 0) 'healthcheck: peer 127.0.0.1:12354 was checked to be not ok
healthcheck: peer 127.0.0.1:12357 was checked to be not ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12358 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be not ok
healthcheck: peer 127.0.0.1:12359 was checked to be not ok
healthcheck: peer 127.0.0.1:12357 was checked to be not ok
healthcheck: peer 127.0.0.1:12358 was checked to be not ok
healthcheck: peer 127.0.0.1:12359 was checked to be not ok
publishing peers version 3
upgrading peers version to 1
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
'
doesn't match '(?^:^healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
(?:healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
){3,5}$)'
sanity.t TEST 1: health check (good case), status ignored by default - pattern "was checked to be not ok" should not match any line in error.log but matches line "2019/02/06 10:51:31 [debug] 4859\#0: *570 [lua] healthcheck.lua:59: debug(): healthcheck: peer 127.0.0.1:12354 was checked to be not ok" (req 0) 2019/02/06 10:51:31 [debug] 4859\#0: fetching key "nok:foo.com:p0" in shared dict "healthcheck"
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008878F10:10
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008878F60:16
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008878FB0:32
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008879010:16
'
sanity.t TEST 1: health check (good case), status ignored by default - pattern "was checked to be not ok" should not match any line in error.log but matches line "2019/02/06 10:51:31 [debug] 4859\#0: *570 [lua] healthcheck.lua:59: debug(): healthcheck: peer 127.0.0.1:12357 was checked to be not ok" (req 0) 2019/02/06 10:51:31 [debug] 4859\#0: fetching key "nok:foo.com:p3" in shared dict "healthcheck"
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008439270:10
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008460A20:16
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 00000000084392C0:32
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008460A70:16
'
sanity.t TEST 1: health check (good case), status ignored by default - pattern "was checked to be not ok" should not match any line in error.log but matches line "2019/02/06 10:51:31 [debug] 4859\#0: *570 [lua] healthcheck.lua:59: debug(): healthcheck: peer 127.0.0.1:12355 was checked to be not ok" (req 0) 2019/02/06 10:51:31 [debug] 4859\#0: fetching key "nok:foo.com:p1" in shared dict "healthcheck"
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 00000000084610E0:10
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008461130:16
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008461180:32
2019/02/06 10:51:31 [debug] 4707\#0: malloc: 0000000008478510:24
'
sanity.t TEST 1: health check (good case), status ignored by default - pattern "was checked to be not ok" should not match any line in error.log but matches line "2019/02/06 10:51:31 [debug] 4859\#0: *570 [lua] healthcheck.lua:59: debug(): healthcheck: peer 127.0.0.1:12358 was checked to be not ok" (req 0) 2019/02/06 10:51:31 [debug] 4859\#0: fetching key "nok:foo.com:p4" in shared dict "healthcheck"
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: *570 [lua] healthcheck.lua:59: debug(): healthcheck: check backup peer 0
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 00000000084619B0:10
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008461A00:16
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008461A50:32
'
sanity.t TEST 1: health check (good case), status ignored by default - pattern "was checked to be not ok" should not match any line in error.log but matches line "2019/02/06 10:51:31 [debug] 4859\#0: *570 [lua] healthcheck.lua:59: debug(): healthcheck: peer 127.0.0.1:12356 was checked to be not ok" (req 0) 2019/02/06 10:51:31 [debug] 4859\#0: fetching key "nok:foo.com:p2" in shared dict "healthcheck"
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: *570 lua resume returned 0
2019/02/06 10:51:31 [debug] 4859\#0: *570 lua light thread ended normally
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008461E70:16
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008461EC0:16
'
sanity.t TEST 1: health check (good case), status ignored by default - pattern "was checked to be not ok" should not match any line in error.log but matches line "2019/02/06 10:51:31 [debug] 4859\#0: *570 [lua] healthcheck.lua:59: debug(): healthcheck: peer 127.0.0.1:12359 was checked to be not ok" (req 0) 2019/02/06 10:51:31 [debug] 4859\#0: fetching key "nok:foo.com:b0" in shared dict "healthcheck"
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: *570 malloc: 0000000008462220:184
2019/02/06 10:51:31 [debug] 4859\#0: malloc: 0000000008462320:48
2019/02/06 10:51:31 [debug] 4859\#0: event timer add: 138813408: 100:11181899
2019/02/06 10:51:31 [debug] 4859\#0: created timer (co: 0000000008461FE0 delay: 100 ms)
'
sanity.t TEST 1: health check (good case), status ignored by default - pattern "was checked to be not ok" should not match any line in error.log but matches line "2019/02/06 10:51:31 [debug] 4859\#0: *581 [lua] healthcheck.lua:59: debug(): healthcheck: peer 127.0.0.1:12357 was checked to be not ok" (req 0) 2019/02/06 10:51:31 [debug] 4859\#0: fetching key "nok:foo.com:p3" in shared dict "healthcheck"
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: slab free: 000000000403B800
2019/02/06 10:51:31 [debug] 4859\#0: slab free: 000000000403B880
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: slab free: 000000000403B300
2019/02/06 10:51:31 [debug] 4859\#0: slab free: 000000000403B400
2019/02/06 10:51:31 [debug] 4859\#0: lua shared dict set: found old entry and value size matched, reusing it
'
sanity.t TEST 1: health check (good case), status ignored by default - pattern "was checked to be not ok" should not match any line in error.log but matches line "2019/02/06 10:51:31 [debug] 4859\#0: *581 [lua] healthcheck.lua:59: debug(): healthcheck: peer 127.0.0.1:12358 was checked to be not ok" (req 0) 2019/02/06 10:51:31 [debug] 4859\#0: fetching key "nok:foo.com:p4" in shared dict "healthcheck"
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: slab free: 000000000403B580
2019/02/06 10:51:31 [debug] 4859\#0: slab free: 000000000403B280
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: lua shared dict set: creating a new entry
2019/02/06 10:51:31 [debug] 4859\#0: slab alloc: 90 slot: 4
2019/02/06 10:51:31 [debug] 4859\#0: slab alloc: 000000000403B100
'
sanity.t TEST 1: health check (good case), status ignored by default - pattern "was checked to be not ok" should not match any line in error.log but matches line "2019/02/06 10:51:31 [debug] 4859\#0: *581 [lua] healthcheck.lua:59: debug(): healthcheck: peer 127.0.0.1:12359 was checked to be not ok" (req 0) 2019/02/06 10:51:31 [debug] 4859\#0: fetching key "nok:foo.com:b0" in shared dict "healthcheck"
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: shmtx lock
2019/02/06 10:51:31 [debug] 4859\#0: lua shared dict set: creating a new entry
2019/02/06 10:51:31 [debug] 4859\#0: slab alloc: 90 slot: 4
2019/02/06 10:51:31 [debug] 4859\#0: slab alloc: 000000000403B180
2019/02/06 10:51:31 [debug] 4859\#0: shmtx unlock
2019/02/06 10:51:31 [debug] 4859\#0: fetching key "ok:foo.com:b0" in shared dict "healthcheck"
'
sanity.t TEST 2: health check (bad case), no listening port in the backup peer - grep_error_log_out (req 0) 'healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
publishing peers version 2
upgrading peers version to 1
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be not ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be not ok
warn(): healthcheck: peer 127.0.0.1:12356 is turned down after 2 failure(s)
publishing peers version 2
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be not ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be not ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be not ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be not ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be not ok
'
doesn't match '(?^:^healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be not ok
healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be not ok
warn\(\): healthcheck: peer 127\.0\.0\.1:12356 is turned down after 2 failure\(s\)
publishing peers version 1
(?:healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be not ok
){2,4}$)'
sanity.t TEST 10: concurrency == 3 (odd number of peers) - grep_error_log_out (req 0) 'spawn a thread checking primary peer 0
spawn a thread checking primary peer 1
check primary peer 2
check backup peer 0
spawn a thread checking primary peer 0
spawn a thread checking primary peer 1
check primary peer 2
check backup peer 0
spawn a thread checking primary peer 0
spawn a thread checking primary peer 1
check primary peer 2
check backup peer 0
spawn a thread checking primary peer 0
spawn a thread checking primary peer 1
check primary peer 2
check backup peer 0
spawn a thread checking primary peer 0
spawn a thread checking primary peer 1
check primary peer 2
check backup peer 0
spawn a thread checking primary peer 0
spawn a thread checking primary peer 1
check primary peer 2
check backup peer 0
spawn a thread checking primary peer 0
spawn a thread checking primary peer 1
check primary peer 2
check backup peer 0
'
doesn't match '(?^:^(?:spawn a thread checking primary peer 0
spawn a thread checking primary peer 1
check primary peer 2
check backup peer 0
){4,6}$)'
sanity.t TEST 6: health check (bad case), bad status, and then rise again - grep_error_log_out (req 0) 'healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12357 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12357 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12357 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: bad status code from 127.0.0.1:12355: 403
healthcheck: peer 127.0.0.1:12355 was checked to be not ok
warn(): healthcheck: peer 127.0.0.1:12355 is turned down after 1 failure(s)
healthcheck: peer 127.0.0.1:12356 was checked to be ok
publishing peers version 1
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
warn(): healthcheck: peer 127.0.0.1:12355 is turned up after 2 success(es)
healthcheck: peer 127.0.0.1:12356 was checked to be ok
publishing peers version 2
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
healthcheck: peer 127.0.0.1:12354 was checked to be ok
healthcheck: peer 127.0.0.1:12355 was checked to be ok
healthcheck: peer 127.0.0.1:12356 was checked to be ok
'
doesn't match '(?^:^healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: bad status code from 127\.0\.0\.1:12355: 403
healthcheck: peer 127\.0\.0\.1:12355 was checked to be not ok
warn\(\): healthcheck: peer 127\.0\.0\.1:12355 is turned down after 1 failure\(s\)
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
publishing peers version 1
healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be not ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
warn\(\): healthcheck: peer 127\.0\.0\.1:12355 is turned up after 2 success\(es\)
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
publishing peers version 2
(?:healthcheck: peer 127\.0\.0\.1:12354 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12355 was checked to be ok
healthcheck: peer 127\.0\.0\.1:12356 was checked to be ok
){1,3}$)'

Warnings

(none)

Go back to the index page.