[ https://issues.apache.org/jira/browse/YETUS-419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15324123#comment-15324123 ]
Akira AJISAKA commented on YETUS-419: ------------------------------------- Manually tested {noformat} $ ~/git/yetus/release-doc-maker/releasedocmaker.py --index --license --project HADOOP --project HDFS --project MAPREDUCE --project YARN --projecttitle "Apache Hadoop" --usetoday --version 2.8.0 IncompleteRead(5377 bytes read, 2815 more expected) Connection failed 1 times. Retrying. {noformat} > 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 > Attachments: YETUS-419.00.patch > > > 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)