Dongjoon Hyun created SPARK-28053:
-------------------------------------

             Summary: Handle a corner case where there is no `Link` header
                 Key: SPARK-28053
                 URL: https://issues.apache.org/jira/browse/SPARK-28053
             Project: Spark
          Issue Type: Bug
          Components: Project Infra
    Affects Versions: 3.0.0
            Reporter: Dongjoon Hyun


Currently, `github_jira_sync.py` assumes that there is `Link` always. However, 
it will fail when the number of the open PR is less than 100 (the default 
paging number). It will not happen in Apache Spark, but we had better fix that 
because it happens during review process for `github_jira_sync.py` script.
{code}
Traceback (most recent call last):
  File "dev/github_jira_sync.py", line 139, in <module>
    jira_prs = get_jira_prs()
  File "dev/github_jira_sync.py", line 83, in get_jira_prs
    link_header = filter(lambda k: k.startswith("Link"), page.info().headers)[0]
IndexError: list index out of range
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to