-
Notifications
You must be signed in to change notification settings - Fork 3
Castoro::client logs
lamatsujun edited this page Mar 29, 2012
·
7 revisions
Home > Components >
ログレベルにより出力されるログは以下の通り。Client のデフォルト設定は DEBUG (0)
ログの種類 | ログレベル | ||||
DEBUG (0) | INFO (1) | WARN (2) | ERROR (3) | FATAL (4) | |
初期化 | O | O | – | – | – |
初期化設定 ( 自ホスト IP 等 ) | O | O | – | – | – |
開始 | O | O | – | – | – |
開始設定 ( UDP レスポンス待受ポート) | O | O | – | – | – |
終了 | O | O | – | – | – |
Basket 作成先問合せ | O | O | – | – | – |
Basket 作成先問合せ内容 | O | – | – | – | – |
Basket 作成可問合せ結果の受信 | O | – | – | – | – |
Basket 作成可問合せ結果の内容 | O | – | – | – | – |
CREATE リクエスト | O | O | – | – | – |
CREATE リクエスト内容 | O | – | – | – | – |
CREATE 結果 | O | – | – | – | – |
FINALIZE リクエスト | O | O | – | – | – |
FINALIZE リクエスト内容 | O | – | – | – | – |
FINALIZE 結果 | O | – | – | – | – |
FINALIZE 完了 | O | – | – | – | – |
FINALIZE エラー | O | O | O | O | – |
FINALIZE エラー内容 | O | – | – | – | – |
CANCEL リクエスト | O | O | – | – | – |
CANCEL リクエスト内容 | O | – | – | – | – |
CANCEL 結果 | O | – | – | – | – |
CANCEL エラー | O | O | O | O | – |
CANCEL エラー内容 | O | – | – | – | – |
Basket 問合せ | O | O | – | – | – |
Basket 問合せ内容 | O | – | – | – | – |
Basket 問合せ結果の受信 | O | – | – | – | – |
Basket 問合せ結果の内容 | O | – | – | – | – |
DELETE リクエスト | O | O | – | – | – |
DELETE リクエスト内容 | O | – | – | – | – |
DELETE 結果 | O | – | – | – | – |
以下に Client の出力するログを示す。
内容は、キャンセルに失敗して、エラーが出力された場合である。
I, [2012-03-28T11:34:43.069227 #16979] INFO -- : my_host => client100 I, [2012-03-28T11:34:43.070274 #16979] INFO -- : gateways --- - mgw100:30111 - mgw101:30111 I, [2012-03-28T11:34:43.070405 #16979] INFO -- : *** castoro-client open. I, [2012-03-28T11:34:43.071374 #16979] INFO -- : reserved_port => 30019 I, [2012-03-28T11:34:43.072169 #16979] INFO -- : [key:1.55.1] send CREATE request to gateways I, [2012-03-28T11:34:43.098393 #16979] INFO -- : [key:1.55.1] send CREATE request to peer<peer100> {:island=>efc0fe64} I, [2012-03-28T11:34:43.146980 #16979] INFO -- : [key:1.55.1] send FINALIZE request to peer<peer100> E, [2012-03-28T11:34:43.193636 #16979] ERROR -- : finalize command timeout - peer100 I, [2012-03-28T11:34:43.193781 #16979] INFO -- : [key:1.55.1] send CANCEL request to peer<peer100> I, [2012-03-28T11:34:43.196493 #16979] INFO -- : cancel command failed - ["1.1","R","CANCEL",{"basket":null,"error":{"code":"Castoro::Peer::PreconditionFailedError"}}] , peer100. I, [2012-03-28T11:34:43.196670 #16979] INFO -- : [key:1.55.1] send GET request to peer<peer100> I, [2012-03-28T11:34:43.196749 #16979] INFO -- : get command timeout - peer100 I, [2012-03-28T11:34:44.099739 #16979] INFO -- : *** castoro-client close. ******/client.rb:509:in `create_internal': finalize command timeout - peer100 (Castoro::ClientTimeoutError)
-
初期化時
I, [2012-03-28T11:34:43.069227 #16979] INFO -- : my_host => client100 I, [2012-03-28T11:34:43.070274 #16979] INFO -- : gateways --- - mgw100:30111 - mgw101:30111
- レスポンスを受信する IP アドレス ( my_host ) が出力される。
- リクエスト可能な Gateway 一覧が YAML 形式「 ホスト名:ポート番号 」で出力される。
-
開始時
I, [2012-03-28T11:34:43.070405 #16979] INFO -- : *** castoro-client open. I, [2012-03-28T11:34:43.071374 #16979] INFO -- : reserved_port => 30019
- レスポンスを受信するポート番号 ( reserved_port ) が出力される。
-
終了時
I, [2012-03-28T11:34:44.099739 #16979] INFO -- : *** castoro-client close.
-
Basket 作成時
I, [2012-03-28T09:10:39.932192 #16330] INFO -- : [key:1.1.1] send CREATE request to peer<peer100> D, [2012-03-28T09:10:39.932378 #16330] DEBUG -- : sent to peer100:30111 ["1.1","C","CREATE",{"basket":"1.1.1","hints":{"length":12345,"class":"original"}}] D, [2012-03-28T09:10:39.992739 #16330] DEBUG -- : returned ["1.1","R","CREATE",{"basket":"1.1.1","host":"peer100","path":"/expdsk/1/baskets/w/20120328T09/1.1.1.20120328T091039.083.318960"}] {:island=>efc0fe6e} I, [2012-03-28T09:10:40.000416 #16330] INFO -- : [key:1.1.1] send FINALIZE request to peer<peer100> D, [2012-03-28T09:10:40.000578 #16330] DEBUG -- : sent to peer100:30111 ["1.1","C","FINALIZE",{"basket":"1.1.1","host":"peer100","path":"/expdsk/1/baskets/w/20120328T09/1.1.1.20120328T091039.083.318960"}] D, [2012-03-28T09:10:40.017927 #16330] DEBUG -- : returned ["1.1","R","FINALIZE",{"basket":"1.1.1"}] D, [2012-03-28T09:10:40.018152 #16330] DEBUG -- : Finalize ended.
- CREATE のログと FINALIZE のログが記載される。
- それぞれの送信内容、及びレスポンスが記載される。
I, [2012-03-28T09:10:39.917483 #16330] INFO -- : [key:1.1.1] send CREATE request to gateways D, [2012-03-28T09:10:39.918504 #16330] DEBUG -- : sent to mgw101:30111 ["client100",30087,1] ["1.1","C","CREATE",{"basket":"1.1.1","hints":{"length":12345,"class":"original"}}] D, [2012-03-28T09:10:39.927567 #16330] DEBUG -- : 30087 / received data from 192.168.200.1:40232 ["client100",30087,1] ["1.1","R","CREATE",{"basket":"1.1.1","hosts":["peer100","peer200"],"island":"efc0fe6e"}] D, [2012-03-28T09:10:39.929262 #16330] DEBUG -- : parsed received data --- !ruby/object:Castoro::Protocol::Response::Create::Gateway basket: !ruby/object:Castoro::BasketKey content: 1 revision: 1 type: 1 error: hosts: - peer100 - peer200 island: !ruby/object:Castoro::IslandId string: efc0fe6e D, [2012-03-28T09:10:39.929849 #16330] DEBUG -- : 30087 / received data from 192.168.200.1:34807 ["client100",30087,1] ["1.1","R","CREATE",{"basket":"1.1.1","hosts":["peer200","peer100"],"island":"efc0fe6e"}] I, [2012-03-28T09:10:39.932192 #16330] INFO -- : [key:1.1.1] send CREATE request to peer<peer100> D, [2012-03-28T09:10:39.932378 #16330] DEBUG -- : sent to peer100:30111 ["1.1","C","CREATE",{"basket":"1.1.1","hints":{"length":12345,"class":"original"}}] D, [2012-03-28T09:10:39.992739 #16330] DEBUG -- : returned ["1.1","R","CREATE",{"basket":"1.1.1","host":"peer100","path":"/expdsk/1/baskets/w/20120328T09/1.1.1.20120328T091039.083.318960"}] {:island=>efc0fe6e} I, [2012-03-28T09:10:40.000416 #16330] INFO -- : [key:1.1.1] send FINALIZE request to peer<peer100> D, [2012-03-28T09:10:40.000578 #16330] DEBUG -- : sent to peer100:30111 ["1.1","C","FINALIZE",{"basket":"1.1.1","host":"peer100","path":"/expdsk/1/baskets/w/20120328T09/1.1.1.20120328T091039.083.318960"}] D, [2012-03-28T09:10:40.017927 #16330] DEBUG -- : returned ["1.1","R","FINALIZE",{"basket":"1.1.1"}] D, [2012-03-28T09:10:40.018152 #16330] DEBUG -- : Finalize ended.
I, [2012-03-28T09:28:23.211717 #16383] INFO -- : [key:1.1.1] send GET request to gateways D, [2012-03-28T09:28:23.212367 #16383] DEBUG -- : sent to mgw101:30111 ["client100",30004,1] ["1.1","C","GET",{"basket":"1.1.1"}] D, [2012-03-28T09:28:23.218486 #16383] DEBUG -- : 30004 / received data from 192.168.200.1:41016 ["client100",30004,1] ["1.1","R","GET",{"basket":"1.1.1","paths":{"peer100":"/expdsk/1/baskets/a/0/000/000/1.1.1","peer200":"/expdsk/1/baskets/a/0/000/000/1.1.1"},"island":"efc0fe64"}] D, [2012-03-28T09:28:23.220441 #16383] DEBUG -- : parsed received data --- !ruby/object:Castoro::Protocol::Response::Get basket: !ruby/object:Castoro::BasketKey content: 1 revision: 1 type: 1 error: island: !ruby/object:Castoro::IslandId string: efc0fe64 paths: peer100: /expdsk/1/baskets/a/0/000/000/1.1.1 peer200: /expdsk/1/baskets/a/0/000/000/1.1.1
I, [2012-03-28T09:31:30.798059 #16412] INFO -- : [key:1.1.1] send GET request to gateways D, [2012-03-28T09:31:30.798935 #16412] DEBUG -- : sent to mgw100:30111 ["client100",30028,1] ["1.1","C","GET",{"basket":"1.1.1"}] D, [2012-03-28T09:31:30.802568 #16412] DEBUG -- : 30028 / received data from 192.168.200.1:50256 ["client100",30028,1] ["1.1","R","GET",{"basket":"1.1.1","paths":{"peer100":"/expdsk/1/baskets/a/0/000/000/1.1.1","peer200":"/expdsk/1/baskets/a/0/000/000/1.1.1"},"island":"efc0fe64"}] D, [2012-03-28T09:31:30.804249 #16412] DEBUG -- : parsed received data --- !ruby/object:Castoro::Protocol::Response::Get basket: !ruby/object:Castoro::BasketKey content: 1 revision: 1 type: 1 error: island: !ruby/object:Castoro::IslandId string: efc0fe64 paths: peer100: /expdsk/1/baskets/a/0/000/000/1.1.1 peer200: /expdsk/1/baskets/a/0/000/000/1.1.1 D, [2012-03-28T09:31:30.805488 #16412] DEBUG -- : 30028 / received data from 192.168.200.1:50531 ["client100",30028,1] ["1.1","R","GET",{"basket":"1.1.1","paths":{"peer100":"/expdsk/1/baskets/a/0/000/000/1.1.1","peer200":"/expdsk/1/baskets/a/0/000/000/1.1.1"},"island":"efc0fe64"}] D, [2012-03-28T09:31:30.805865 #16412] DEBUG -- : 30028 / received data from 192.168.200.1:37641 ["client100",30028,1] ["1.1","R","GET",{"basket":"1.1.1","paths":{"peer100":"/expdsk/1/baskets/a/0/000/000/1.1.1","peer200":"/expdsk/1/baskets/a/0/000/000/1.1.1"},"island":"efc0fe6e"}] D, [2012-03-28T09:31:30.806133 #16412] DEBUG -- : 30028 / received data from 192.168.200.1:41552 ["client100",30028,1] ["1.1","R","GET",{"basket":"1.1.1","paths":{"peer100":"/expdsk/1/baskets/a/0/000/000/1.1.1","peer200":"/expdsk/1/baskets/a/0/000/000/1.1.1"},"island":"efc0fe6e"}] I, [2012-03-28T09:31:30.807000 #16412] INFO -- : [key:1.1.1] send DELETE request to peer<peer200> D, [2012-03-28T09:31:30.807157 #16412] DEBUG -- : sent to peer200:30111 ["1.1","C","DELETE",{"basket":"1.1.1"}] D, [2012-03-28T09:31:30.877405 #16412] DEBUG -- : returned ["1.1","R","DELETE",{"basket":"1.1.1"}]