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

Using notify_plugin, delaying or losting event must occured after pushing action #140

Closed
zhopen opened this issue Nov 19, 2019 · 1 comment

Comments

@zhopen
Copy link

zhopen commented Nov 19, 2019

images: boscore/bos:v3.0.0
BP: 2

I pushed action as below:

[root@eosio node]$cl push action hello hi '["zhanghan"]' -p zhanghan
executed transaction: e167450d6374013df0c178ce15c1be23ec23a7bd51ee2db51a4be1a9ddba5122  104 bytes  137 us
#         hello <= hello::hi                    {"user":"zhanghan"}
warning: transaction executed locally, but may not be confirmed by the network yet         ] 
[root@eosio node]$cl push action hello hi '["alice"]' -p alice ; cl push action hello hi '["bob"]' -p bob
executed transaction: e5d7fa6a55b8206f004d826e2ce8115db518ef66722418daf8ba9b7537f04da0  104 bytes  132 us
#         hello <= hello::hi                    {"user":"alice"}
warning: transaction executed locally, but may not be confirmed by the network yet         ] 
executed transaction: 4cbfa444fa9f8cf91a7900b145c5c428d812d97390f43c490de25a89e9262f8b  104 bytes  125 us
#         hello <= hello::hi                    {"user":"bob"}
warning: transaction executed locally, but may not be confirmed by the network yet         ] 

Notify hanlder got post data as below:

------Tue Nov 19 11:42:09 2019------
b'{"irreversible":false,"actions":[{"tx_id":"e167450d6374013df0c178ce15c1be23ec23a7bd51ee2db51a4be1a9ddba5122","account":"hello","name":"hi","seq_num":0,"receiver":"hello","block_time":"2019-11-19T03:42:10.500","block_num":66972,"authorization":[{"actor":"zhanghan","permission":"active"}],"action_data":{"user":"zhanghan"}}]}'

10.255.185.164 - - [19/Nov/2019 11:42:27] "POST /notify HTTP/1.1" 200 -
------Tue Nov 19 11:42:27 2019------  **??????have a big delay after  trx became irreversible**
b'{"irreversible":true,"actions":[{"tx_id":"e167450d6374013df0c178ce15c1be23ec23a7bd51ee2db51a4be1a9ddba5122","account":"hello","name":"hi","seq_num":0,"receiver":"hello","block_time":"2019-11-19T03:42:10.500","block_num":66972,"authorization":[{"actor":"zhanghan","permission":"active"}],"action_data":{"user":"zhanghan"}}]}'

10.255.185.164 - - [19/Nov/2019 11:42:40] "POST /notify HTTP/1.1" 200 -
------Tue Nov 19 11:42:40 2019------
b'{"irreversible":false,"actions":[{"tx_id":"e5d7fa6a55b8206f004d826e2ce8115db518ef66722418daf8ba9b7537f04da0","account":"hello","name":"hi","seq_num":0,"receiver":"hello","block_time":"2019-11-19T03:42:42.000","block_num":67035,"authorization":[{"actor":"alice","permission":"active"}],"action_data":{"user":"alice"}}]}'

10.255.185.164 - - [19/Nov/2019 11:42:41] "POST /notify HTTP/1.1" 200 -
------Tue Nov 19 11:42:41 2019------
b'{"irreversible":false,"actions":[{"tx_id":"4cbfa444fa9f8cf91a7900b145c5c428d812d97390f43c490de25a89e9262f8b","account":"hello","name":"hi","seq_num":0,"receiver":"hello","block_time":"2019-11-19T03:42:42.500","block_num":67036,"authorization":[{"actor":"bob","permission":"active"}],"action_data":{"user":"bob"}}]}'

10.255.185.164 - - [19/Nov/2019 11:43:17] "POST /notify HTTP/1.1" 200 -
------Tue Nov 19 11:43:17 2019------  **??????have a big delay after  trx became irreversible**
b'{"irreversible":true,"actions":[{"tx_id":"e5d7fa6a55b8206f004d826e2ce8115db518ef66722418daf8ba9b7537f04da0","account":"hello","name":"hi","seq_num":0,"receiver":"hello","block_time":"2019-11-19T03:42:42.000","block_num":67035,"authorization":[{"actor":"alice","permission":"active"}],"action_data":{"user":"alice"}}]}'

<<??????
    **if pushing two transactions in almost same time,   lost one irreversible transaction  event  4cbfa444fa9f8cf91a7900b145c5c428d812d97390f43c490de25a89e9262f8b**

head_block_num - last_irreversible_block_num always keeps less than 6.

[root@eosio node]$cl get info
{
  "server_version": "c1387e4b",
  "chain_id": "cf057bbfb72640471fd910bcb67639c22df9f92470936cddc1ade0e2f2e7dc4f",
  "head_block_num": 68069,
  "last_irreversible_block_num": 68067,
  "last_irreversible_block_id": "000109e36c6bdc48dee3d930f8eb40ac128484126d38e4a7981bfb36de84e42b",
  "head_block_id": "000109e5ca6301db0b67087ad0c2f9f9f6d690f52bfc583df5914dc9e8dfa279",
  "head_block_time": "2019-11-19T03:51:19.000",
  "head_block_producer": "prod1",
  "current_view": 8,
  "target_view": 9,
  "last_stable_checkpoint_block_num": 68001,
  "virtual_block_cpu_limit": 200000000,
  "virtual_block_net_limit": 1048576000,
  "block_cpu_limit": 199900,
  "block_net_limit": 1048576,
  "server_version_string": "v3.0.0"
}
@oldcold
Copy link

oldcold commented Nov 26, 2019

Can you pls confirm if this problem continue happens in later versions?

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

3 participants