Closed ggwpez closed 1 year ago
It is doing 94 recursions of get_storage_data_dynamic_batch_size
on Westend. Should maybe re-write this to use a loop to prevent an overflow.
Seems like some of the parallelization added in #12537 is causing more issues than helping :(
Seems like some of the parallelization added in https://github.com/paritytech/substrate/pull/12537 is causing more issues than helping :(
Yea not sure how much it helped with the speed, came up in the review here https://github.com/paritytech/substrate/pull/13923#discussion_r1171035228
But the panic is not from your parallel change, but rather also #13923. We should add a test that it does not break in Polkadot :sweat_smile:
Hey thanks for raising this.
I had been testing try-runtime against a local Polkadot node on my laptop without any issues, I wasn't aware a CI env existed that needs testing against. I'm looking into this now.
https://github.com/hyperium/hyper/issues/2112
Try creating a new client in the "batch thread" instead of cloning should fix that...
Here https://github.com/paritytech/substrate/blob/b4b21168bfa2d8fbde18b2efb9518124a2d70154/utils/frame/remote-externalities/src/lib.rs#L571 because it starts another tokio runtime in the new thread which might fuck up the hyper background thread/task because it is started on another runtime ^^
Yea this still fails, so i cant test https://github.com/paritytech/substrate/pull/13417
The same error after #14030? Then we need what I wrote in the PR
Yea looks like the same error
```pre
2023-04-28 08:51:43.840 DEBUG ThreadId(48) remote-ext: Remaining payloads: 57361 Batch request size: 1336
2023-04-28 08:51:44.178 INFO main remote-ext: inserting keys progress = 24% [450000 / 1842910]
====================
Version: 0.9.41-3ec08c0ac34
0: sp_panic_handler::set::{{closure}}
1:
Now after a re-run it does work. so probably something flaky…
Thanks for the logs. I'm going to prioritise refactoring this to remove the redundant multi-threading, which should resolve this issue.
It also happens with TRY_RUNTIME_MAX_THREADS=1
:man_shrugging:
No, the problem is that the runtime that created client is closed when the background task tries to perform the RPC call ^^
The number of threads shouldn't matter
On commit Polkadot 3595684b0293439c32dfe563008958c7d0091289 ran:
Truncated output:
Need this for testing a change. Full log from the CI.