We have a Hazelcast cluster (v 3.10.1) running on two windows servers, with multiple java clients connected. We are using Maps, Queues, Topics and Reliable Topics all of which are working. However in Management Center we are not getting any stats for the reliable topic.
Initially we did not explicitly declare the reliable topic in the hazelcast xml, allowing it to be dynamically created, however the default has
<statistics-enabled>true</statistics-enabled>
.
Since we were not getting any stats, we explicitly declared the topic however we are still not receiving any stats.
All other structures (maps, queues, topics) are showing stats correctly.
EDIT Running the following through the man center scripting shows an increment in the cluster publish stats when explictly called through the scripting directly
function viewStats(topicName) {
var topic = hazelcast.getReliableTopic(topicName);
topic.publish("foo");
var topicStats = topic.getLocalTopicStats()
return 'Stats => ' + topicStats;
}
viewStats(["YOUR_TOPIC_NAME"]);
However publish actions made by remote java clients are not reflected. We have already proved via debugging on the clients that the topic is working and data is being published, but it is not reflected in the man center stats
This behaviour might be intentional, since the LocalTopicStats
are local to the member and receivedCount
and publishedCount
are local stats for the client when the operations are performed from the client.
I created a Github issue on Hazelcast repository regarding this behaviour. Please follow the discussion over there.