You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "LongGang Chen (JIRA)" <ji...@apache.org> on 2018/05/24 07:17:00 UTC
[jira] [Created] (YARN-8353) LightWeightResource's hashCode
function is different from parent class
LongGang Chen created YARN-8353:
-----------------------------------
Summary: LightWeightResource's hashCode function is different from parent class
Key: YARN-8353
URL: https://issues.apache.org/jira/browse/YARN-8353
Project: Hadoop YARN
Issue Type: Bug
Reporter: LongGang Chen
LightWeightResource's hashCode function is different from parent class。
One of the consequences is:
ContainerUpdateContext.removeFromOutstandingUpdate will nor work correct,
ContainerUpdateContext.outstandingIncreases will has smelly datas。
a simple test:
public void testHashCode() throws Exception {
Resource resource = Resources.createResource(10,10);
Resource resource1 = new ResourcePBImpl();
resource1.setMemorySize(10L);
resource1.setVirtualCores(10);
int x = resource.hashCode();
int y = resource1.hashCode();
Assert.assertEquals(x, y);
}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org