You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/06/14 07:35:00 UTC

[jira] [Resolved] (SPARK-28053) Handle a corner case where there is no `Link` header

     [ https://issues.apache.org/jira/browse/SPARK-28053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon resolved SPARK-28053.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 24874
[https://github.com/apache/spark/pull/24874]

> 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
>            Assignee: Dongjoon Hyun
>            Priority: Trivial
>             Fix For: 3.0.0
>
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org