After applying JBoss EAP 7.2 Update 7, messages are being added to a topic even though there are no subscribers attached
Environment
- Red Hat JBoss Enterprise Application Platform
- 7.2 Update 7
Issue
JMS topic publisher is able to add messages to a JMS topic even though there are no subscribers attached to the topic. After topic subscribers consumed messages messages are not being removed from the topic.
Resolution
Apply Update 8 or later when available.
A one-off patch JBEAP-19005 should be applied on top of Update 7
Root Cause
This content is not included.JBEAP-19001
This issue has been caused by these fixes:
Diagnostic Steps
The issue can be observed when JMS topic publisher is started and starts publishing messages on a topic that has no subscribers. There should be no messages added to the topic and all counters should be set to 0, unfortunately this is not the case. It is possible to observe the following where the message-count, instead of being 0 increments as long as messages are being published.
[standalone@rex:9990 /] /subsystem=messaging-activemq/server=default/jms-topic=testTopic:read-resource(recursive=true,include-defaults=true,include-runtime=true)
{
"outcome" => "success",
"result" => {
"delivering-count" => 0,
"durable-message-count" => 0,
"durable-subscription-count" => 0,
"entries" => [
"java:/jms/topic/testTopic",
"java:jboss/exported/jms/topic/testTopic"
],
"legacy-entries" => undefined,
"message-count" => 546L,
"messages-added" => 0L,
"non-durable-message-count" => 0,
"non-durable-subscription-count" => 0,
"subscription-count" => 0,
"temporary" => false,
"topic-address" => "jms.topic.testTopic"
}
}
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.