Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unauthorized Producer Creation Attempts Cause Log Flooding and Unresponsiveness #477

Closed
Havret opened this issue Feb 6, 2024 · 0 comments · Fixed by #478
Closed

Unauthorized Producer Creation Attempts Cause Log Flooding and Unresponsiveness #477

Havret opened this issue Feb 6, 2024 · 0 comments · Fixed by #478
Labels
bug Something isn't working

Comments

@Havret
Copy link
Owner

Havret commented Feb 6, 2024

Describe the bug

When a user without the necessary permissions tries to create a producer, the auto-recovery feature of the ActiveMQ Artemis Client continuously attempts to re-establish the producer. This process results in a flood of log messages, as shown below, and ultimately renders the application unresponsive.

2024-02-06 11:34:51.1238|TRACE|ActiveMQ.Artemis.Client.AutoRecovering.AutoRecoveringProducer|Producer recovered. 
2024-02-06 11:34:51.1375|TRACE|ActiveMQ.Artemis.Client.AutoRecovering.AutoRecoveringProducer|Producer suspended. 
2024-02-06 11:34:51.1402|TRACE|ActiveMQ.Artemis.Client.AutoRecovering.AutoRecoveringProducer|Producer resumed. 
2024-02-06 11:34:51.1421|TRACE|ActiveMQ.Artemis.Client.AutoRecovering.AutoRecoveringProducer|Retrying send after Producer reestablished. 
2024-02-06 11:34:51.1422|TRACE|ActiveMQ.Artemis.Client.AutoRecovering.AutoRecoveringProducer|Producer suspended. 
2024-02-06 11:34:51.1422|TRACE|ActiveMQ.Artemis.Client.AutoRecovering.AutoRecoveringProducer|Producer resumed. 
2024-02-06 11:34:51.1422|TRACE|ActiveMQ.Artemis.Client.AutoRecovering.AutoRecoveringProducer|Retrying send after Producer reestablished. 
2024-02-06 11:34:51.1422|TRACE|ActiveMQ.Artemis.Client.AutoRecovering.AutoRecoveringProducer|Producer suspended. 
2024-02-06 11:34:51.1422|TRACE|ActiveMQ.Artemis.Client.AutoRecovering.AutoRecoveringProducer|Producer resumed. 

Expected behavior

Instead of repeatedly attempting to recreate the producer, the client should immediately throw an exception indicating that the user is unauthorized to create a producer for the requested address.

Environment:

  • OS: macOS Sonoma 14.1 (23B74)
  • Version: 2.15.0
  • Broker: ActiveMQ Artemis 2.30.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant