Skip to content

QQ: handle aux state upgrades from aux v1.#16990

Merged
michaelklishin merged 2 commits into
mainfrom
qq-aux-upgrade-fix-2
Jul 22, 2026
Merged

QQ: handle aux state upgrades from aux v1.#16990
michaelklishin merged 2 commits into
mainfrom
qq-aux-upgrade-fix-2

Conversation

@kjnilsson

@kjnilsson kjnilsson commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

If this isn't done and a system is upgraded as: 3.13 -> 4.2 -> 4.3
then the aux state will initialise as aux v1 which the current version
of rabbit_fifo.erl does not handle. The aux state will never be
upgraded and thus the queue(s) will never emit metrics or take
snapshots.

Fixes #16974

@kjnilsson kjnilsson added this to the 4.3.4 milestone Jul 21, 2026
    If this isn't done and a system is upgraded as: 3.13 -> 4.2 -> 4.3
    then the aux state will initialise as aux v1 which the current version
    of rabbit_fifo.erl does not handle. The aux state will never be
    upgraded and thus the queue(s) will never emit metrics or take
    snapshots.
@the-mikedavis

Copy link
Copy Markdown
Collaborator

I think we could catch this in a regression test too that sets initial_machine_version 0 and walks through the machine versions and then casts a tick aux command and does something to assert that the aux effects are working.

@kjnilsson
kjnilsson marked this pull request as ready for review July 21, 2026 15:28
@mergify

mergify Bot commented Jul 21, 2026

Copy link
Copy Markdown

Tick the box to add this pull request to the merge queue (same as @mergifyio queue).

  • Queue this pull request

@michaelklishin michaelklishin modified the milestones: 4.3.4, 4.4.0 Jul 21, 2026
It mimics existing tests for v1 => v2 and v2 => v3.
@michaelklishin

Copy link
Copy Markdown
Collaborator

I have added a tiny aux_v3 => aux_v4 migration test that is virtually identical to two existing suites for v1 => v2 and v2 => v3 migrations.

@michaelklishin
michaelklishin merged commit e1ae854 into main Jul 22, 2026
188 checks passed
@michaelklishin
michaelklishin deleted the qq-aux-upgrade-fix-2 branch July 22, 2026 00:12
michaelklishin added a commit that referenced this pull request Jul 22, 2026
QQ: handle aux state upgrades from aux v1. (backport #16990)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quorum queue stats show ??? in management UI after stepwise upgrade from 3.13 to 4.3 and a 4.3 restart afterwards

3 participants