Changing branch causes the Tezos node to freeze, causing timeouts to all RPC requests
Environment (Alphanet, build from source, or both)
Alphanet and Mainnet latest releases.
Expected behavior
The node should not freeze or fail to respond to RPC requests.
Actual behavior
The node freezes for approximately 2.5 minutes every time there is a re-org that causes "changing branch"
Steps to reproduce
We're providing screenshots from our logging system which demonstrates that the RPC client timeouts occur every time the node changes branch.
Please look at the code here: https://gitlab.com/tezos/tezos/blob/master/src/lib_shell/chain_validator.ml#L385
This is the event that triggers it.