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

Reliable Topic statistics are not updated when Java client is used #14167

Closed
alparslanavci opened this issue Nov 23, 2018 · 3 comments
Closed

Comments

@alparslanavci
Copy link
Contributor

When Reliable Topic operations are performed from Java client, the Reliable Topic statistics are not updated. The following test fails:

@Test
public void publishSingle(){
    String name = "testTopic";
    ITopic topic = client.getReliableTopic(name);

    final String msg = "foobar";
    topic.publish(msg);

    assertEquals(1, hazelcastInstance.getReliableTopic(name)
            .getLocalTopicStats().getPublishOperationCount());
}
@alparslanavci
Copy link
Contributor Author

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.

However, this also affects Management Center Topic stats, because the LocalTopicStats are merged from all cluster members on Management Center and displayed as all cumulative stats for the topic. Thus, client operations are not reflected on Management Center Topic tab.

@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Nov 30, 2018
@sancar
Copy link
Contributor

sancar commented Dec 20, 2018

This is tricky to solve because ClientReliableTopic is not using any topic-specific message task when communicating with the server. ClientReliableTopic is an implementation on the ring buffer.

@mmedenjak mmedenjak modified the milestones: 3.12, 3.13 Jan 25, 2019
@mmedenjak mmedenjak removed this from the 3.13 milestone Apr 17, 2019
@sancar sancar added this to the Backlog milestone May 8, 2021
@promanenko
Copy link
Contributor

Fixed by #19642
in scope of a duplicate issue #19555

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants