Skip to content

Conversation

@acogoluegnes
Copy link
Contributor

The connection cannot return some information while initializing, so we just return no information.

The CLI info call was supported only in the open gen_statem callback, so such a call during the connection init would make it crash. This can happen when several stream connections get closed and the user calls list_stream_consumers or list_stream_connections while the connection are recovering.

This commit adds a clause for CLI info calls in the all the gen_statem callbacks and returns actual information only when appropriate.

@acogoluegnes acogoluegnes added this to the 4.1.0 milestone Jan 10, 2025
@acogoluegnes acogoluegnes marked this pull request as draft January 10, 2025 13:49
The connection cannot return some information while initializing, so we
just return no information.

The CLI info call was supported only in the open gen_statem callback, so
such a call during the connection init would make it crash. This can
happen when several stream connections get closed and the user calls
list_stream_consumers or list_stream_connections while the connection
are recovering.

This commit adds a clause for CLI info calls in the all the gen_statem
callbacks and returns actual information only when appropriate.
@acogoluegnes acogoluegnes force-pushed the rabbitmq-stream-ignore-cli-call-during-connection-init branch from ba970c7 to 062baa6 Compare January 15, 2025 14:39
@acogoluegnes acogoluegnes marked this pull request as ready for review January 15, 2025 15:50
@mkuratczyk mkuratczyk assigned mkuratczyk and unassigned mkuratczyk Jan 15, 2025
@mkuratczyk mkuratczyk self-requested a review January 15, 2025 16:06
@mkuratczyk mkuratczyk merged commit 415dc81 into main Jan 15, 2025
270 checks passed
@mkuratczyk mkuratczyk deleted the rabbitmq-stream-ignore-cli-call-during-connection-init branch January 15, 2025 16:07
mergify bot pushed a commit that referenced this pull request Jan 15, 2025
The connection cannot return some information while initializing, so we
just return no information.

The CLI info call was supported only in the open gen_statem callback, so
such a call during the connection init would make it crash. This can
happen when several stream connections get closed and the user calls
list_stream_consumers or list_stream_connections while the connection
are recovering.

This commit adds a clause for CLI info calls in the all the gen_statem
callbacks and returns actual information only when appropriate.

(cherry picked from commit 415dc81)
acogoluegnes added a commit that referenced this pull request Jan 15, 2025
Ignore CLI info calls during stream connection initialization (backport #13049)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants