Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 97B76200C36 for ; Thu, 23 Feb 2017 18:04:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 964EF160B3E; Thu, 23 Feb 2017 17:04:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D123B160B64 for ; Thu, 23 Feb 2017 18:04:51 +0100 (CET) Received: (qmail 20358 invoked by uid 500); 23 Feb 2017 17:04:51 -0000 Mailing-List: contact notifications-help@yetus.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@yetus.apache.org Delivered-To: mailing list notifications@yetus.apache.org Received: (qmail 20197 invoked by uid 99); 23 Feb 2017 17:04:50 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2017 17:04:50 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 3DB3AC20ED for ; Thu, 23 Feb 2017 17:04:50 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id sjde0CgnDaob for ; Thu, 23 Feb 2017 17:04:46 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 387E261E28 for ; Thu, 23 Feb 2017 17:04:46 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id AD63BE05EE for ; Thu, 23 Feb 2017 17:04:45 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6008F2414E for ; Thu, 23 Feb 2017 17:04:44 +0000 (UTC) Date: Thu, 23 Feb 2017 17:04:44 +0000 (UTC) From: "Adam Faris (JIRA)" To: notifications@yetus.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (YETUS-460) RDM should handle connection reset by peer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 23 Feb 2017 17:04:52 -0000 [ https://issues.apache.org/jira/browse/YETUS-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Adam Faris updated YETUS-460: ----------------------------- Attachment: YETUS-460.07.patch Thanks and no problems with sticking through-it. bq. indentation in the first try-except block in load_jira method is just 1 space instead of the 4 You're right, that style is important. I updated the spacing to 4 for the try block you mentioned in patch 7. bq. converting the comments at the beginning of get_jira to docstrings. Updated in patch 7 bq. in the interest of saving one more iteration I can amend(and test) the commit If there's something I misunderstood and missed, feel free to amend as needed. Thanks > RDM should handle connection reset by peer > ------------------------------------------ > > Key: YETUS-460 > URL: https://issues.apache.org/jira/browse/YETUS-460 > Project: Yetus > Issue Type: Bug > Components: Release Doc Maker > Reporter: Allen Wittenauer > Assignee: Adam Faris > Fix For: 0.5.0 > > Attachments: YETUS-460.00.patch, YETUS-460.01.patch, YETUS-460.02.patch, YETUS-460.03.patch, YETUS-460.04.patch, YETUS-460.05.patch, YETUS-460.06.patch, YETUS-460.07.patch > > > When a connection reset by peer error happens, we get a python stack trace. We should handle that better. > {code} > Traceback (most recent call last): > File "/Users/aw/shared-vmware/yetus/release-doc-maker/releasedocmaker.py", line 907, in > main() > File "/Users/aw/shared-vmware/yetus/release-doc-maker/releasedocmaker.py", line 748, in main > jlist = sorted(JiraIter(vstr, projects)) > File "/Users/aw/shared-vmware/yetus/release-doc-maker/releasedocmaker.py", line 400, in __init__ > self.jiras = JiraIter.collect_jiras(ver, projects) > File "/Users/aw/shared-vmware/yetus/release-doc-maker/releasedocmaker.py", line 379, in collect_jiras > data = JiraIter.query_jira(ver, projects, pos) > File "/Users/aw/shared-vmware/yetus/release-doc-maker/releasedocmaker.py", line 330, in query_jira > return JiraIter.load_jira(params, 0) > File "/Users/aw/shared-vmware/yetus/release-doc-maker/releasedocmaker.py", line 337, in load_jira > params) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 154, in urlopen > return opener.open(url, data, timeout) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 429, in open > response = self._open(req, data) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 447, in _open > '_open', req) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 407, in _call_chain > result = func(*args) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1241, in https_open > context=self._context) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", line 1201, in do_open > r = h.getresponse(buffering=True) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1136, in getresponse > response.begin() > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 453, in begin > version, status, reason = self._read_status() > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 409, in _read_status > line = self.fp.readline(_MAXLINE + 1) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 480, in readline > data = self._sock.recv(self._rbufsize) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 756, in recv > return self.read(buflen) > File "/usr/local/Cellar/python/2.7.12/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 643, in read > v = self._sslobj.read(len) > socket.error: [Errno 54] Connection reset by peer > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)