You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Akira AJISAKA (JIRA)" <ji...@apache.org> on 2016/06/10 07:37:20 UTC
[jira] [Created] (YETUS-419) releasedocmaker should retry when the
connection fails
Akira AJISAKA created YETUS-419:
-----------------------------------
Summary: releasedocmaker should retry when the connection fails
Key: YETUS-419
URL: https://issues.apache.org/jira/browse/YETUS-419
Project: Yetus
Issue Type: Bug
Components: Release Doc Maker
Affects Versions: 0.3.0
Reporter: Akira AJISAKA
I sometimes see the following error when execute create-release in Apache Hadoop.
{noformat}
Traceback (most recent call last):
File "/Users/aajisaka/git/hadoop/patchprocess/yetus-0.3.0/bin/../lib/release-doc-maker/releasedocmaker.py", line 928, in <module>
main()
File "/Users/aajisaka/git/hadoop/patchprocess/yetus-0.3.0/bin/../lib/release-doc-maker/releasedocmaker.py", line 777, in main
jlist = sorted(JiraIter(vstr, projects))
File "/Users/aajisaka/git/hadoop/patchprocess/yetus-0.3.0/bin/../lib/release-doc-maker/releasedocmaker.py", line 408, in __init__
self.jiras = JiraIter.collect_jiras(ver, projects)
File "/Users/aajisaka/git/hadoop/patchprocess/yetus-0.3.0/bin/../lib/release-doc-maker/releasedocmaker.py", line 387, in collect_jiras
data = JiraIter.query_jira(ver, projects, pos)
File "/Users/aajisaka/git/hadoop/patchprocess/yetus-0.3.0/bin/../lib/release-doc-maker/releasedocmaker.py", line 376, in query_jira
data = json.loads(resp.read())
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 355, in read
data = self._sock.recv(rbufsize)
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 588, in read
return self._read_chunked(amt)
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 652, in _read_chunked
value.append(self._safe_read(amt))
File "/usr/local/Cellar/python/2.7.10/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 705, in _safe_read
raise IncompleteRead(''.join(s), amt)
httplib.IncompleteRead: IncompleteRead(777 bytes read, 7415 more expected)
{noformat}
I'm thinking we should retry the query when IncompleteRead is raised.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)