Skip to content

Advisory issue about potential Message Queue Bug #1375

@ggwpez

Description

@ggwpez

Hey I saw that you have the Idle processing in the MQ pallet enabled, this was recently discovered to mark messages incorrectly as overweight.

(Feel free to close at any time, this issue is just meant as an advisory)

Issue

The bug was accidentially introduced by #3844 and fixed in #6205. It is awaiting backports for versions 1.10 up to stable2409.

Impact

The MQ pallet can - under specific circumstances - mark a message as permanently overweight and put it into an overweight queue instead of processing it. The message can still be executed manually, but it is not automatic (like it should). Someone wrote a bot for this: unofficial link.

I only saw this happen once recently, so impact should hopefully be limited:

Screenshot 2024-10-25 at 18 24 02

Work Around

A. Disable the Idle processing with type IdleMaxServiceWeight = (). This means that incoming messages will only be process in on_initialize - potentially increasing the latency of incoming messages by one block.

B. Another way is to manually call message_queue::execute_overweight on all messages that got stuck. Eg with the bot linked above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions