Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shutdown the near_event_monitor gracefully #410

Open
5 tasks
en opened this issue Oct 11, 2023 · 0 comments
Open
5 tasks

shutdown the near_event_monitor gracefully #410

en opened this issue Oct 11, 2023 · 0 comments

Comments

@en
Copy link
Member

en commented Oct 11, 2023

Summary of Bug

After the test is complete, the channel will be closed.
The near_event_monitor still sends messages

2023-10-11T08:55:13.332643Z  INFO worker.batch{chain=ibc-2}:supervisor.handle_batch{chain=ibc-2}:supervisor.process_batch{chain=ibc-2}:worker.packet.cmd{src_chain=ibc-2 src_port=transfer src_channel=channel-0 dst_chain=near-0}:relay{odata=312eb096 ->Destination @2-360; len=1}: ibc_relayer::link::operational_data: assembled batch of 2 message(s)
2023-10-11T08:55:13.332955Z  INFO worker.batch{chain=ibc-2}:supervisor.handle_batch{chain=ibc-2}:supervisor.process_batch{chain=ibc-2}:worker.packet.cmd{src_chain=ibc-2 src_port=transfer src_channel=channel-0 dst_chain=near-0}:relay{odata=312eb096 ->Destination @2-360; len=1}: ibc_relayer::chain::near: proto_msgs: ["/ibc.core.client.v1.MsgUpdateClient", "/ibc.core.channel.v1.MsgAcknowledgement"], tracking_id: Uuid(312eb096-4025-4d50-bdb4-1cbc0137a707) 
crates/relayer/src/chain/near/mod.rs:555:13
2023-10-11T08:55:16.018306Z  WARN event_monitor{chain=near-0}: ibc_relayer::event::near_event_monitor: querying ibc events at height: [141265163]
2023-10-11T08:55:16.278558Z  WARN event_monitor{chain=near-0}: ibc_relayer::chain::near::rpc::tool: get_name_from_module_event_attributes: ""
2023-10-11T08:55:16.278614Z  WARN event_monitor{chain=near-0}: ibc_relayer::chain::near::rpc::tool: get_name_from_module_event_attributes: ""
2023-10-11T08:55:16.278650Z  WARN event_monitor{chain=near-0}: ibc_relayer::event::near_event_monitor: ibc events found at height 141265163: EventBatch { chain_id: ChainId { id: "near-0", version: 0 }, tracking_id: Uuid(f4c5b7ca-f9b1-4734-9fc8-3719e5f37666), height: Height { revision: 0, height: 141265163 }, events: [IbcEventWithHeight { event: Message("ibc_client"), height: Height { revision: 0, height: 141265163 } }, IbcEventWithHeight { event: UpdateClient(UpdateClient { common: Attributes { client_id: ClientId("07-tendermint-317"), client_type: Tendermint, consensus_height: Height { revision: 2, height: 361 } }, header: None }), height: Height { revision: 0, height: 141265163 } }, IbcEventWithHeight { event: Message("ibc_channel"), height: Height { revision: 0, height: 141265163 } }, IbcEventWithHeight { event: AcknowledgePacket(AcknowledgePacket { packet: Packet { sequence: Sequence(2), source_port: PortId("transfer"), source_channel: ChannelId("channel-232"), destination_port: PortId("transfer"), destination_channel: ChannelId("channel-0"), data: [], timeout_height: Never, timeout_timestamp: Timestamp { time: Some(Time(2023-10-11 9:11:26.581892208)) } } }), height: Height { revision: 0, height: 141265163 } }, IbcEventWithHeight { event: AppModule(ModuleEvent { kind: "fungible_token_packet", module_name: ModuleId("transfer"), attributes: [ModuleEventAttribute { key: "module", value: "transfer" }, ModuleEventAttribute { key: "sender", value: "5ae5529ca2ab0ca6119bfed72e05f9f5cb12074c8480e1fa0f91126d7cde9838" }, ModuleEventAttribute { key: "receiver", value: "cosmos15acc7q0zx2t3jzwctql9k9mncy2xq5vcksf058" }, ModuleEventAttribute { key: "denom", value: "transfer/channel-232/samoleans" }, ModuleEventAttribute { key: "amount", value: "2933" }, ModuleEventAttribute { key: "memo", value: "" }, ModuleEventAttribute { key: "acknowledgement", value: "AQ==" }] }), height: Height { revision: 0, height: 141265163 } }, IbcEventWithHeight { event: AppModule(ModuleEvent { kind: "fungible_token_packet", module_name: ModuleId("transfer"), attributes: [ModuleEventAttribute { key: "success", value: "AQ==" }] }), height: Height { revision: 0, height: 141265163 } }] }
2023-10-11T08:55:16.278700Z ERROR event_monitor{chain=near-0}: ibc_relayer::event::near_event_monitor: failed to send event batch: sending on a disconnected channel

Version

Steps to Reproduce

RUST_BACKTRACE=full cargo test -p ibc-integration-test -- test_ibc_transfers

Acceptance Criteria


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate milestone (priority) applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant