Uploaded image for project: 'Yetus'
  1. Yetus
  2. YETUS-419

releasedocmaker should retry when the connection fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.3.0
    • 0.4.0
    • Release Doc Maker
    • None

    Description

      I sometimes see the following error when execute create-release in Apache Hadoop.

      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)
      

      I'm thinking we should retry the query when IncompleteRead is raised.

      Attachments

        1. YETUS-419.00.patch
          2 kB
          Akira Ajisaka
        2. YETUS-419.01.patch
          2 kB
          Akira Ajisaka
        3. YETUS-419.02.patch
          4 kB
          Akira Ajisaka

        Activity

          People

            aajisaka Akira Ajisaka
            aajisaka Akira Ajisaka
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: