Hi Leehui,
Thanks for sending your test code. I will take a look at it.
The API gms.getAllMemberDetails() is supposed to return the same
information on all nodes. If it is not, we need to look into it as to
why it is not so. Can you please file an issue for this and add your
test case as well?
The node details get removed from the DSC when the node fails. There
is a call to DSC.removeFromCache() which happens as part of the
failure notofication of that node. So you should'nt have to remove
the contents for the failed node since it is taken care of by GMS,
unless you have something specific in mind that I have'nt understood.
Thanks
Sheetal
On May 16, 2008, at 2:01 AM, leehui wrote:
> Hi Shreedhar,
>
> I use MemberDetails to store some member's data, such as
> member's token. Though, this may be not practical. Let's just take
> it as an example. Then I use gms.getAllMemberDetails to get all
> members' token. I found that gms.getAllMemberDetails returns the
> different results on different node. Some nodes don't return all
> members' token. I have written a simple test code, you can get it
> in attachment. Start up serveral instances, then you can see the
> result. My question is how to make every node return the same
> results from gms.getAllMemberDetails.
>
> Another question is, how to remove a member's memberDetails? I
> read the api docs. The GroupManagementServiceImpl offers
> get,set,update methods for MemberDetails. It doesn't offer the
> remove method. But when a node is failed, the node's memberDetails
> still remain in cache. How can I clear the failed members'
> MemberDetails.?
>
> Thank you in advance for your reply.
> --------------
> leehui
> 2008-05-16<MemberDetailsTest.java>------------------------------------
> ---------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net