hazelcast / hazelcast/hazelcast-csharp-client

[TRACKING ISSUE] Fire membership events when persistence enabled [API-2083]

Open
#424 1 comment 0 reactions 0 assignees View on GitHub
Jira Source: Tracking
Dominant language
C#
Stars
107
Forks
52
PR merge metrics
No merged PRs in 30d

Description

The tracking issue for the Java side PR.

See https://github.com/hazelcast/hazelcast/pull/18245 for details.

---

When persistence enabled, client does not fire membership
events because members starts with same uuid's.

With this pr, we make sure that when cluster restarted,
we always update the local memberlist with empty member list
first.
This way, we will be able to fire member removed/added events
even if member uuid's does not change.

Note that if cluster uuid does not change, we will not fire
any event. This happens client disconnected and connected
back to the same cluster.
Note that cluster uuid is not preserved on hotrestart with
presistence.

There was already a test to verify this behaviour but it
was working wrong.
"ClientHotRestartTest extends ClientClusterRestartEventTest"
In this pr, we make sure that the test uses same address
for the restarted member to test this correctly.

fixes https://github.com/hazelcast/hazelcast/issues/18234

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.