[ https://issues.apache.org/jira/browse/YARN-9213?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16751133#comment-16751133 ]
Peter Bacsko commented on YARN-9213: ------------------------------------ Just one question regarding this code: {noformat} 161 switch (resourceName) { 162 case ResourceInformation.MEMORY_URI: 163 translatedResourceName = "Memory"; 164 break; 165 case ResourceInformation.VCORES_URI: 166 translatedResourceName = "VCores"; 167 break; 168 default: 169 translatedResourceName = resourceName; 170 break; 171 } {noformat} This is just a safety net for vcores/memory, right? Because in theory, this method should only be invoked for resources other than mem and vcores (an if condition checks that above). If that cannot happen just simply remove this method and replace {{sb.append(getResourceAsString(key, value))}} with {{sb.append(key).append(" ").append(value)}} > RM Web UI does not show custom resource allocations for containers page > ----------------------------------------------------------------------- > > Key: YARN-9213 > URL: https://issues.apache.org/jira/browse/YARN-9213 > Project: Hadoop YARN > Issue Type: Bug > Reporter: Szilard Nemeth > Assignee: Szilard Nemeth > Priority: Major > Attachments: YARN-9213.001.patch > > -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org