You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, there is no runtime warnings generated if some of unbounded channels are not polled and the messages keep accumulating and leak memory.
As suggested in https://github.com/paritytech/devops/issues/2085#issuecomment-1321726923 we should track the number of messages in flight in the channel when they are sent here and generate a runtime error if this number exceeds the threshold (one hundred thousand messages was suggested as a good number that should never be triggered under the normal circumstances).
When the error is triggered, it should print to the logs the relevant info about the Receiver that is not getting polled: the name of the Receiver and the the backtrace of where it was constructed.
Currently, there is no runtime warnings generated if some of unbounded channels are not polled and the messages keep accumulating and leak memory.
As suggested in https://github.com/paritytech/devops/issues/2085#issuecomment-1321726923 we should track the number of messages in flight in the channel when they are sent here and generate a runtime error if this number exceeds the threshold (one hundred thousand messages was suggested as a good number that should never be triggered under the normal circumstances).
When the error is triggered, it should print to the logs the relevant info about the
Receiverthat is not getting polled: the name of theReceiverand the the backtrace of where it was constructed.This should help with investigating issues like https://github.com/paritytech/devops/issues/2085.
CC @koute @altonen