Marcono1234 created YARN-10644: ---------------------------------- Summary: ProcfsBasedProcessTree.ADDRESS_PATTERN is misleading and possibly incorrect Key: YARN-10644 URL: https://issues.apache.org/jira/browse/YARN-10644 Project: Hadoop YARN Issue Type: Bug Reporter: Marcono1234
The regex pattern of field {{org.apache.hadoop.yarn.util.ProcfsBasedProcessTree.ADDRESS_PATTERN}} contains the follow character class twice: {code} [[a-f]|(0-9)]* {code} The way it is written suggests the author might wanted to match with this only {{a-f}} or {{0-9}}. However character classes allow any of the contained characters (or ranges), therefore this additionally matches {{|}}, {{(}} and {{)}} as well which might not have been intended: {code} "|()".matches("[[a-f]|(0-9)]*") {code} If the intention was to only allow {{a-f}} or {{0-9}}, it should be written as: {code} [a-f0-9] {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org