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

Comments

Projects
None yet
3 participants
@emrahkocaman

This comment has been minimized.

Copy link
Contributor

commented Jan 5, 2017

@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

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Member

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

This comment has been minimized.

Copy link
Member Author

commented Jan 13, 2017

fixed via #9630

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.