clustericious / Yars

Yet-another ARchive Service
5 stars 2 forks source link

Event "error" failed: Can't call method "log" on an undefined value (mojo 4.50) #8

Closed plicease closed 10 years ago

plicease commented 10 years ago
t/60_mark_down.t .. 
1..75
ok 1 - create directory /tmp/B7vvG54wBR/my_home/data
ok 2 - create config helper data_dir
#  INFO Initialized logger
#  INFO Log config found : /tmp/B7vvG54wBR/my_home/etc/log4perl.conf
ok 3 - create directory /tmp/B7vvG54wBR/my_home/state
#  INFO No auth configured
# DEBUG Helper "url_with" already exists, replacing.
#  INFO max message size = 50G (53687091200)
# DEBUG Helper "auth_ua" already exists, replacing.
ok 4 - created cluster
#  INFO Writing new state file (/tmp/B7vvG54wBR/my_home/state/state)
# DEBUG GET "/servers/status".
# DEBUG Routing to a callback.
# DEBUG 200 OK (0.012731s, 78.548/s).
ok 5 - GET http://127.0.0.1:38547/servers/status
ok 6 - 200 OK
ok 7 - exact match for JSON Pointer ""
# DEBUG POST "/disk/status".
# DEBUG Routing to a callback.
#  INFO Marking disk /tmp/B7vvG54wBR/my_home/data/two down
# DEBUG 200 OK (0.004987s, 200.521/s).
ok 8 - POST http://127.0.0.1:38547/disk/status
ok 9 - 200 OK
ok 10 - content is similar
# DEBUG POST "/disk/status".
# DEBUG Routing to a callback.
#  INFO Marking disk /tmp/B7vvG54wBR/my_home/data/three down
# DEBUG 200 OK (0.015001s, 66.662/s).
ok 11 - POST http://127.0.0.1:38547/disk/status
ok 12 - 200 OK
ok 13 - content is similar
# DEBUG GET "/servers/status".
# DEBUG Routing to a callback.
# DEBUG 200 OK (0.002625s, 380.952/s).
ok 14 - GET http://127.0.0.1:38547/servers/status
ok 15 - 200 OK
ok 16 - exact match for JSON Pointer ""
# DEBUG POST "/disk/status".
# DEBUG Routing to a callback.
#  INFO Marking disk /tmp/B7vvG54wBR/my_home/data/five down
# DEBUG 200 OK (0.010512s, 95.129/s).
ok 17 - POST http://127.0.0.1:38547/disk/status
ok 18 - 200 OK
ok 19 - content is similar
# DEBUG PUT "/file/filename_1".
# DEBUG Routing to a callback.
# DEBUG Received filename_1 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/three), this is http://127.0.0.1:38547
#  INFO /tmp/B7vvG54wBR/my_home/data/three does not exist, creating it now
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/three is not up
# DEBUG Stashing filename_1 locally
# DEBUG 201 Created (0.020392s, 49.039/s).
# DEBUG Stashed filename_1 (9297ab3fbd56b42f6566284119238125) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 20 - PUT http://127.0.0.1:38547/file/filename_1
ok 21 - 201 Created
# DEBUG PUT "/file/filename_2".
# DEBUG Routing to a callback.
# DEBUG Received filename_2 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/two), this is http://127.0.0.1:38547
#  INFO /tmp/B7vvG54wBR/my_home/data/two does not exist, creating it now
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/two is not up
# DEBUG Stashing filename_2 locally
# DEBUG 201 Created (0.017490s, 57.176/s).
# DEBUG Stashed filename_2 (6685cd62b95f2c58818cb20e7292168b) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 22 - PUT http://127.0.0.1:38547/file/filename_2
ok 23 - 201 Created
# DEBUG PUT "/file/filename_3".
# DEBUG Routing to a callback.
# DEBUG Received filename_3 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/three), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/three is not up
# DEBUG Stashing filename_3 locally
# DEBUG 201 Created (0.023946s, 41.761/s).
# DEBUG Stashed filename_3 (bffd51760cd2c6b531756efac72110c3) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 24 - PUT http://127.0.0.1:38547/file/filename_3
ok 25 - 201 Created
# DEBUG PUT "/file/filename_4".
# DEBUG Routing to a callback.
# DEBUG Received filename_4 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/four), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/four is not up
# DEBUG Stashing filename_4 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/five is down, cannot stash filename_4 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/three is down, cannot stash filename_4 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/two is down, cannot stash filename_4 there.
# DEBUG 201 Created (0.018174s, 55.024/s).
# DEBUG Stashed filename_4 (d5f2c23b4e2ddd8fa4d6a5ad72265330) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 26 - PUT http://127.0.0.1:38547/file/filename_4
ok 27 - 201 Created
# DEBUG PUT "/file/filename_5".
# DEBUG Routing to a callback.
# DEBUG Received filename_5 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/one), this is http://127.0.0.1:38547
# DEBUG 201 Created (0.006904s, 144.844/s).
ok 28 - PUT http://127.0.0.1:38547/file/filename_5
ok 29 - 201 Created
# DEBUG PUT "/file/filename_6".
# DEBUG Routing to a callback.
# DEBUG Received filename_6 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/three), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/three is not up
# DEBUG Stashing filename_6 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/five is down, cannot stash filename_6 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/four is down, cannot stash filename_6 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/two is down, cannot stash filename_6 there.
# DEBUG 201 Created (0.018593s, 53.784/s).
# DEBUG Stashed filename_6 (838559e92c5a52def29b9484c32ddcbb) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 30 - PUT http://127.0.0.1:38547/file/filename_6
ok 31 - 201 Created
# DEBUG PUT "/file/filename_7".
# DEBUG Routing to a callback.
# DEBUG Received filename_7 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/three), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/three is not up
# DEBUG Stashing filename_7 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/four is down, cannot stash filename_7 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/two is down, cannot stash filename_7 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/five is down, cannot stash filename_7 there.
# DEBUG 201 Created (0.020493s, 48.797/s).
# DEBUG Stashed filename_7 (8723fd7a2e31d56966f94616adf799b1) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 32 - PUT http://127.0.0.1:38547/file/filename_7
ok 33 - 201 Created
# DEBUG PUT "/file/filename_8".
# DEBUG Routing to a callback.
# DEBUG Received filename_8 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/two), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/two is not up
# DEBUG Stashing filename_8 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/three is down, cannot stash filename_8 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/four is down, cannot stash filename_8 there.
# DEBUG 201 Created (0.015400s, 64.935/s).
# DEBUG Stashed filename_8 (51f996f04cf87844a8bbfcd9e440aaec) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 34 - PUT http://127.0.0.1:38547/file/filename_8
ok 35 - 201 Created
# DEBUG PUT "/file/filename_9".
# DEBUG Routing to a callback.
# DEBUG Received filename_9 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/five), this is http://127.0.0.1:38547
#  INFO /tmp/B7vvG54wBR/my_home/data/five does not exist, creating it now
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/five is not up
# DEBUG Stashing filename_9 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/three is down, cannot stash filename_9 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/four is down, cannot stash filename_9 there.
# DEBUG 201 Created (0.020064s, 49.841/s).
# DEBUG Stashed filename_9 (e59ab0ef702775537acdae6534455abf) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 36 - PUT http://127.0.0.1:38547/file/filename_9
ok 37 - 201 Created
# DEBUG PUT "/file/filename_10".
# DEBUG Routing to a callback.
# DEBUG Received filename_10 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/three), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/three is not up
# DEBUG Stashing filename_10 locally
# DEBUG 201 Created (0.013297s, 75.205/s).
# DEBUG Stashed filename_10 (a16739e0f7951dacfd9075ce3b9385d4) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 38 - PUT http://127.0.0.1:38547/file/filename_10
ok 39 - 201 Created
# DEBUG PUT "/file/filename_11".
# DEBUG Routing to a callback.
# DEBUG Received filename_11 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/three), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/three is not up
# DEBUG Stashing filename_11 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/five is down, cannot stash filename_11 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/four is down, cannot stash filename_11 there.
# DEBUG 201 Created (0.016836s, 59.397/s).
# DEBUG Stashed filename_11 (ab4b46d1c3fcff2b7d334aaea9bbc6dd) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 40 - PUT http://127.0.0.1:38547/file/filename_11
ok 41 - 201 Created
# DEBUG PUT "/file/filename_12".
# DEBUG Routing to a callback.
# DEBUG Received filename_12 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/three), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/three is not up
# DEBUG Stashing filename_12 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/four is down, cannot stash filename_12 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/two is down, cannot stash filename_12 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/five is down, cannot stash filename_12 there.
# DEBUG 201 Created (0.023378s, 42.775/s).
# DEBUG Stashed filename_12 (b32c23b02d6953c64cb333836466e0b4) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 42 - PUT http://127.0.0.1:38547/file/filename_12
ok 43 - 201 Created
# DEBUG PUT "/file/filename_13".
# DEBUG Routing to a callback.
# DEBUG Received filename_13 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/three), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/three is not up
# DEBUG Stashing filename_13 locally
# DEBUG 201 Created (0.014716s, 67.953/s).
# DEBUG Stashed filename_13 (824977762a476aab70eb44e00b2b1951) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 44 - PUT http://127.0.0.1:38547/file/filename_13
ok 45 - 201 Created
# DEBUG PUT "/file/filename_14".
# DEBUG Routing to a callback.
# DEBUG Received filename_14 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/two), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/two is not up
# DEBUG Stashing filename_14 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/four is down, cannot stash filename_14 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/five is down, cannot stash filename_14 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/three is down, cannot stash filename_14 there.
# DEBUG 201 Created (0.019788s, 50.536/s).
# DEBUG Stashed filename_14 (69a0d97190cc87acd879e01898c1ff63) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 46 - PUT http://127.0.0.1:38547/file/filename_14
ok 47 - 201 Created
# DEBUG PUT "/file/filename_15".
# DEBUG Routing to a callback.
# DEBUG Received filename_15 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/five), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/five is not up
# DEBUG Stashing filename_15 locally
# DEBUG 201 Created (0.009526s, 104.976/s).
# DEBUG Stashed filename_15 (e026b602c81744e6efb0da4e3803c16b) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 48 - PUT http://127.0.0.1:38547/file/filename_15
ok 49 - 201 Created
# DEBUG PUT "/file/filename_16".
# DEBUG Routing to a callback.
# DEBUG Received filename_16 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/one), this is http://127.0.0.1:38547
# DEBUG 201 Created (0.017588s, 56.857/s).
ok 50 - PUT http://127.0.0.1:38547/file/filename_16
ok 51 - 201 Created
# DEBUG PUT "/file/filename_17".
# DEBUG Routing to a callback.
# DEBUG Received filename_17 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/five), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/five is not up
# DEBUG Stashing filename_17 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/four is down, cannot stash filename_17 there.
# DEBUG 201 Created (0.017953s, 55.701/s).
# DEBUG Stashed filename_17 (f407fb1f459e6e0d72c6e3d2bbf38fd6) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 52 - PUT http://127.0.0.1:38547/file/filename_17
ok 53 - 201 Created
# DEBUG PUT "/file/filename_18".
# DEBUG Routing to a callback.
# DEBUG Received filename_18 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/one), this is http://127.0.0.1:38547
# DEBUG 201 Created (0.012840s, 77.882/s).
ok 54 - PUT http://127.0.0.1:38547/file/filename_18
ok 55 - 201 Created
# DEBUG PUT "/file/filename_19".
# DEBUG Routing to a callback.
# DEBUG Received filename_19 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/five), this is http://127.0.0.1:38547
# DEBUG Disk /tmp/B7vvG54wBR/my_home/data/five is not up
# DEBUG Stashing filename_19 locally
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/four is down, cannot stash filename_19 there.
# DEBUG local disk /tmp/B7vvG54wBR/my_home/data/two is down, cannot stash filename_19 there.
# DEBUG 201 Created (0.022883s, 43.701/s).
# DEBUG Stashed filename_19 (f36a6639dc80096593f6678bede0a8d8) locally on /tmp/B7vvG54wBR/my_home/data/one
ok 56 - PUT http://127.0.0.1:38547/file/filename_19
ok 57 - 201 Created
# DEBUG PUT "/file/filename_20".
# DEBUG Routing to a callback.
# DEBUG Received filename_20 assigned to http://127.0.0.1:38547 (/tmp/B7vvG54wBR/my_home/data/one), this is http://127.0.0.1:38547
# DEBUG 201 Created (0.011539s, 86.663/s).
ok 58 - PUT http://127.0.0.1:38547/file/filename_20
ok 59 - 201 Created
Event "error" failed: Can't call method "log" on an undefined value at /home/ollisg/.perlbrew/libs/perl-5.16.3@dev/lib/perl5/Mojo/Server/Daemon.pm line 190.
# Premature connection close
not ok 60 - GET /disk/usage?count=1 # TODO run yars_fast_balance
#   Failed (TODO) test 'GET /disk/usage?count=1'
#   at t/60_mark_down.t line 77.
not ok 61 - 200 OK # TODO run yars_fast_balance

#   Failed (TODO) test '200 OK'
#   at t/60_mark_down.t line 77.
#          got: undef
#     expected: '200'
not ok 62 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 78.
#          got: undef
#     expected: '20'
not ok 63 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 79.
#          got: undef
#     expected: '0'
not ok 64 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 79.
#          got: undef
#     expected: '0'
not ok 65 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 79.
#          got: undef
#     expected: '0'
not ok 66 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 79.
#          got: undef
#     expected: '0'
Event "error" failed: Can't call method "log" on an undefined value at /home/ollisg/.perlbrew/libs/perl-5.16.3@dev/lib/perl5/Mojo/Server/Daemon.pm line 190.
# Premature connection close
not ok 67 - GET /disk/usage?count=1 # TODO run yars_fast_balance
#   Failed (TODO) test 'GET /disk/usage?count=1'
#   at t/60_mark_down.t line 82.
not ok 68 - 200 OK # TODO run yars_fast_balance

#   Failed (TODO) test '200 OK'
#   at t/60_mark_down.t line 82.
#          got: undef
#     expected: '200'
not ok 69 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 83.
#          got: undef
#     expected: '17'
not ok 70 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 84.
#          got: undef
#     expected: '3'
not ok 71 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 85.
#          got: undef
#     expected: '0'
not ok 72 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 85.
#          got: undef
#     expected: '0'
not ok 73 # TODO run yars_fast_balance

#   Failed (TODO) test at t/60_mark_down.t line 85.
#          got: undef
#     expected: '0'
Event "error" failed: Can't call method "log" on an undefined value at /home/ollisg/.perlbrew/libs/perl-5.16.3@dev/lib/perl5/Mojo/Server/Daemon.pm line 190.
# Premature connection close
not ok 74 - POST /disk/status # TODO run yars_fast_balance
#   Failed (TODO) test 'POST /disk/status'
#   at t/60_mark_down.t line 88.
not ok 75 - 400 Bad Request # TODO run yars_fast_balance

#   Failed (TODO) test '400 Bad Request'
#   at t/60_mark_down.t line 88.
#          got: undef
#     expected: '400'
ok
All tests successful.
Files=1, Tests=75, 47 wallclock secs ( 0.20 usr  0.02 sys +  1.37 cusr  0.10 csys =  1.69 CPU)
Result: PASS
plicease commented 10 years ago

This definitely does NOT happen on Mojo 4.49.

plicease commented 10 years ago

this was the fix 06ca8ba84aaf44b303d7293ed8845f4ae3362399