iwasakims opened a new pull request, #4344:
URL: https://github.com/apache/hadoop/pull/4344

   https://issues.apache.org/jira/browse/HADOOP-18251
   
   git_jira_fix_version_check.py is confused by commit message like "YARN-1151. 
Ability to configure auxiliary services from HDFS-based JAR files." which 
contains both {{YARN-}} and {{HDFS-}}. The latter {{HDFS-}} is unexpectedly 
picked as JIRA issue id then 404 is throwed on acceccing invalid URL like 
"https://issues.apache.org/jira/rest/api/2/issue/HDFS-";.
   
   ```
   Traceback (most recent call last):
     File 
"/home/centos/srcs/hadoop/dev-support/git-jira-validation/git_jira_fix_version_check.py",
 line 87, in <module>
       issue = jira.issue(ACTUAL_PROJECT_JIRA + JIRA_NUM)
     File "/home/centos/venv/lib64/python3.6/site-packages/jira/client.py", 
line 1404, in issue
       issue.find(id, params=params)
     File "/home/centos/venv/lib64/python3.6/site-packages/jira/resources.py", 
line 288, in find
       self._load(url, params=params)
     File "/home/centos/venv/lib64/python3.6/site-packages/jira/resources.py", 
line 458, in _load
       r = self._session.get(url, headers=headers, params=params)
     File 
"/home/centos/venv/lib64/python3.6/site-packages/jira/resilientsession.py", 
line 195, in get
       return self.__verb("GET", str(url), **kwargs)
     File 
"/home/centos/venv/lib64/python3.6/site-packages/jira/resilientsession.py", 
line 189, in __verb
       raise_on_error(response, verb=verb, **kwargs)
     File 
"/home/centos/venv/lib64/python3.6/site-packages/jira/resilientsession.py", 
line 70, in raise_on_error
       **kwargs,
   jira.exceptions.JIRAError: JiraError HTTP 404 url: 
https://issues.apache.org/jira/rest/api/2/issue/HDFS-
           text: Issue Does Not Exist
   ```
   
   If commit message contains multiple match on 
'HADOOP-|HDFS-|YARN-|MAPREDUCE-', choosing the first one should be the fix.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to