igniterealtime / openfire-hazelcast-plugin

Adds support for running multiple redundant Openfire servers together in a cluster
10 stars 12 forks source link

correct way of determining node cluster state #57

Closed devillaccc closed 3 years ago

devillaccc commented 3 years ago

ClusterManager#isSeniorClusterMember method returns 'true' until the node in cluster receives 'joinCluster' event.

Scenario:

How to determine cluster state in this situation ?

GregDThomas commented 3 years ago

Please use issues for bug reports only, please use the forums at https://discourse.igniterealtime.org/ for these sort of discussions.

However, you may want to look at ClusterManager.isSeniorClusterMemberOrNotClustered()

devillaccc commented 3 years ago

Hi Greg, thanks for your response. ClusterManager.isSeniorClusterMemberOrNotClustered() is not available on OF 4.2.0

As cluster status is not returned correctly, can this be considered as an issue or defect ?