LiskArchive / lisk-sdk

🔩 Lisk software development kit
https://lisk.com
Apache License 2.0
2.72k stars 455 forks source link

Plugin loading times out in the beginning #8312

Closed ishantiw closed 1 year ago

ishantiw commented 1 year ago

Expected behavior

Plugin should load properly and should execute normally afterwards

Actual behavior

Plugin is not loaded properly and timeout, the execution doesn't work as expected in the beginning

It doesn't load on time and misses out on some execution

2023-03-27T15:34:21.989Z ERROR MacBook-Pro-2.local application 18193 [err=Child process plugin loading timeout] Fail to start controller
2023-03-27T15:34:22.873Z ERROR MacBook-Pro-2.local plugin_chainConnector 18195 [err=IPC Socket client connection timeout. Please check if IPC server is running.] Not able to connect to receivingChainAPIClient. Trying again on next new block.
2023-03-27T15:34:22.874Z DEBUG MacBook-Pro-2.local engine 18194 [sender=00618fb492] Received IPC request
2023-03-27T15:34:22.896Z DEBUG MacBook-Pro-2.local ABIClient 18194 [method=query id=2 file=abi_client] Requesting ABI server
2023-03-27T15:34:22.900Z DEBUG MacBook-Pro-2.local application 18193 [method=query id=2 file=abi_server] Received and decoded request
2023-03-27T15:34:22.934Z INFO MacBook-Pro-2.local application 18193 [method=interoperability_getOwnChainAccount] Called ABI query successfully
2023-03-27T15:34:22.935Z DEBUG MacBook-Pro-2.local application 18193 [method=query id=2 file=abi_server] Responded request
2023-03-27T15:34:22.936Z DEBUG MacBook-Pro-2.local ABIClient 18194 [method=query id=2 file=abi_client] Received response from ABI server

and then it loads successfully

2023-03-27T15:34:22.941Z DEBUG MacBook-Pro-2.local plugin_chainConnector 18195 [plugin=chainConnector] Plugin is successfully loaded
2023-03-27T15:34:22.943Z INFO MacBook-Pro-2.local chainConnector 18193 Loaded child-process plugin

Steps to reproduce

Run pos-mainchain-fast with chain connector plugin and observe processing first few blockHeaders in the plugin.

Which version(s) does this affect? (Environment, OS, etc...)

v6.0.0-alpha.16

ishantiw commented 1 year ago

Resolved in https://github.com/LiskHQ/lisk-sdk/pull/8315