How to set setStringAttribute local member in Hazelcast 5.1.5

13 views
Skip to first unread message

Poornima Baddi

unread,
Jan 16, 2023, 4:08:53 PM1/16/23
to Hazelcast
Hi,

I am upgrading hazel cast from 3.2 to 5.1.5.
Now, in Hazelcast 5.1.X, noticed that we cannot set the attribute using hazelcastInstance.getCluster().getLocalMember().setStringAttribute("local_member_name", "uniqueid").

we would like to know if there is any workaround for this, or how to set  local attributes.
Please provide your inputs and let us know if any other details are needed.

Appreciate your reply.

Regards,
Poornima

Josef Cacek

unread,
Jan 17, 2023, 2:53:43 AM1/17/23
to haze...@googlegroups.com
Hi Poornima,

Changing the attributes was disallowed/removed in 4.0 as the functionality was broken. Look into the relate PR for details: https://github.com/hazelcast/hazelcast/pull/16168

The PR description suggests using IMap functionality as the replacement:

Users can implement a similar thing using IMap with Member.getUUID as the key.

Regards,
-- Josef

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/49c17aa9-a341-48c1-aa53-f1b0b3fd3f5cn%40googlegroups.com.

This message contains confidential information and is intended only for the individuals named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version. -Hazelcast
Reply all
Reply to author
Forward
0 new messages