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

Map stats are disappeared after member restart #9590

Closed
ahmetmircik opened this issue Jan 5, 2017 · 4 comments
Closed

Map stats are disappeared after member restart #9590

ahmetmircik opened this issue Jan 5, 2017 · 4 comments

Comments

@ahmetmircik
Copy link
Member

see https://groups.google.com/d/msgid/hazelcast/5be14630-9d9b-4cb5-a250-a24a9c1ccb57%40googlegroups.com?utm_medium=email&utm_source=footer

@emrahkocaman
Copy link
Contributor

@sancar I think this is a similar problem solved with #9443.
Imagine that member is restarted, clients reconnects it when it's available but uses the old proxy so no new proxy is created on member side after reconnection.
WDYT?

@sancar sancar assigned sancar and unassigned sancar Jan 9, 2017
@sancar
Copy link
Contributor

sancar commented Jan 10, 2017

@emrahkocaman Yes, you are right. This is exactly why it is not working. Client only creates proxy on server when client.getMap called. Similarly for example PutOperation also does not create proxy. A new joined member gets old proxies via PostJoinOperation.

So this issue only happens when there is single node and it is restarted. And proxy only used from client.
I am not sure what should be the solution. May be all operations coming from client should create the related proxy on the server.

@sancar
Copy link
Contributor

sancar commented Jan 10, 2017

Ok. I remembered why map.put does not create proxy on the server when done from client
Following code prints 1 0 0 both on node and client. I guess we don't want to break this behaviour.

    IMap<Object, Object> a = instance.getMap("a");
    System.out.print(instance.getDistributedObjects().size());
    a.destroy();
    System.out.print(instance.getDistributedObjects().size());
    a.put(1, 1);
    System.out.print(instance.getDistributedObjects().size());

@ahmetmircik ahmetmircik self-assigned this Jan 11, 2017
@ahmetmircik
Copy link
Member Author

fixed via #9630

@mmedenjak mmedenjak added the Source: Internal PR or issue was opened by an employee label Jan 28, 2020
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

4 participants