Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Jira] Delay is not working #139

Open
rodrigokuroda opened this issue Dec 17, 2014 · 0 comments
Open

[Jira] Delay is not working #139

rodrigokuroda opened this issue Dec 17, 2014 · 0 comments

Comments

@rodrigokuroda
Copy link

I think that the delay parameter is not working correctly.

$ bicho --db-user-out=USER --db-password-out=PASS --db-database-out=hadoop -n 200 -d 20 -g -b jira -u "https://issues.apache.org/jira/browse/HADOOP"

The output is like as the following:

Checking URL: https://issues.apache.org
No account provided.
DBG: [17/Dec/2014-20:30:43] Bicho object created, options and backend initialized
Running Bicho with delay of 20 seconds
No account data provided. Not logged in Jira
DBG: [17/Dec/2014-20:30:43] Last bugs cached were modified at: 2012-12-15 16:26
DBG: [17/Dec/2014-20:30:43] Getting number of issues: https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?pid=HADOOP&sorter/field=updated&sorter/order=INC&updated:after=2012-12-15%2016:26&tempMax=1
Tickets to be retrieved: 3443
DBG: [17/Dec/2014-20:30:53] https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?pid=HADOOP&sorter/field=updated&sorter/order=INC&updated:after=2012-12-15%2016:26&tempMax=200&pager/start=0
DBG: [17/Dec/2014-20:32:36] Bug activity: https://issues.apache.org/jira/browse/HADOOP-9145?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
DBG: [17/Dec/2014-20:32:44] Bug activity: https://issues.apache.org/jira/browse/HADOOP-8976?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
DBG: [17/Dec/2014-20:32:53] Bug activity: https://issues.apache.org/jira/browse/HADOOP-9146?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
DBG: [17/Dec/2014-20:33:04] Bug activity: https://issues.apache.org/jira/browse/HADOOP-8947?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
DBG: [17/Dec/2014-20:33:18] Bug activity: https://issues.apache.org/jira/browse/HADOOP-9149?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
DBG: [17/Dec/2014-20:33:25] Bug activity: https://issues.apache.org/jira/browse/HADOOP-9018?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
DBG: [17/Dec/2014-20:33:36] Bug activity: https://issues.apache.org/jira/browse/HADOOP-9156?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
[...]

After some minutes the following error occurs. I think that it is caused by low delay.
Am I right?

[...]
DBG: [17/Dec/2014-14:34:01] Bug activity: https://issues.apache.org/jira/browse/HADOOP-9212?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
DBG: [17/Dec/2014-14:34:15] Bug activity: https://issues.apache.org/jira/browse/HADOOP-9217?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
DBG: [17/Dec/2014-14:34:30] Bug activity: https://issues.apache.org/jira/browse/HADOOP-9093?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
DBG: [17/Dec/2014-14:34:47] Bug activity: https://issues.apache.org/jira/browse/HADOOP-9247?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/bicho/backends/jira.py", line 978, in analyze_bug_list
    issues = handler.getIssues(self.conn)
  File "/usr/local/lib/python2.7/dist-packages/bicho/backends/jira.py", line 770, in getIssues
    bicho_bugs.append(self.getIssue(bug, conn))
  File "/usr/local/lib/python2.7/dist-packages/bicho/backends/jira.py", line 812, in getIssue
    f = conn.urlopen_auth(bug_activity_url)
  File "/usr/local/lib/python2.7/dist-packages/bicho/backends/jira.py", line 888, in urlopen_auth
    printerr("Error code: %s, reason: %s" % (e.code, e.reason))
AttributeError: 'URLError' object has no attribute 'code'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant