[
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: [email protected]
For additional commands, e-mail: [email protected]