Skip to content

Conversation

lhoguin
Copy link
Contributor

@lhoguin lhoguin commented Sep 21, 2023

When policies are applied to change a CMQ master, and that master moves from 3.13 to 3.12, this triggers a CQ version change (because it defaults to v2 in 3.13 but v1 in 3.12). which leads to a crash because the files on disk have an index entry for messages that are in memory only.

The index entry is only created with CMQs, normal CQs prohibit this behavior. Since we are going to remove CMQs "soon" the solution to fix the crash was to simply ignore the index entry when we know the message is already in memory.

This will need to be merged to both main and 3.12 before this fixes the mixed test that currently fails.

Types of Changes

  • Bug fix (non-breaking change which fixes issue #NNNN)

When policies are applied to change a CMQ master, and that master
moves from 3.13 to 3.12, this triggers a CQ version change
(because it defaults to v2 in 3.13 but v1 in 3.12). which
leads to a crash because the files on disk have an index entry
for messages that are in memory only.

The index entry is only created with CMQs, normal CQs prohibit
this behavior. Since we are going to remove CMQs "soon" the
solution to fix the crash was to simply ignore the index entry
when we know the message is already in memory.
@lhoguin lhoguin marked this pull request as ready for review September 21, 2023 13:33
@HoloRin HoloRin merged commit 4f18a0d into main Sep 21, 2023
@HoloRin HoloRin deleted the loic-fix-mixed-test-cq-crash branch September 21, 2023 13:37
@michaelklishin michaelklishin added this to the 3.13.0 milestone Sep 21, 2023
HoloRin added a commit that referenced this pull request Sep 21, 2023
CQ: Fix a crash when CMQ master changes in mixed environment test (backport #9507)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants