You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "Bruce Schuchardt (JIRA)" <ji...@apache.org> on 2016/12/14 22:35:59 UTC
[jira] [Created] (GEODE-2215) NPE in ViewCreator thread setting
public keys into a NetView
Bruce Schuchardt created GEODE-2215:
---------------------------------------
Summary: NPE in ViewCreator thread setting public keys into a NetView
Key: GEODE-2215
URL: https://issues.apache.org/jira/browse/GEODE-2215
Project: Geode
Issue Type: Bug
Components: membership
Reporter: Bruce Schuchardt
Assignee: Mark Bretl
I saw an NPE in a ViewCreator thread and created this unit test to reproduce the problem:
{code}
public void testNullPublicKeysNotRetained() throws Exception {
NetView view = new NetView(members.get(0), 2, new ArrayList<>(members));
setFailureDetectionPorts(view);
NetView newView = new NetView(view, 3);
for (InternalDistributedMember member: view.getMembers()) {
view.setPublicKey(member, null);
}
newView.setPublicKeys(view);
for (InternalDistributedMember member: view.getMembers()){
assertNull(newView.getPublicKey(member));
assertNull(view.getPublicKey(member));
}
}
{code}
The problem seems to be that some Maps that NetView uses to hold these keys accept null values whlie others do not.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)