Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-28053

Handle a corner case where there is no `Link` header

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0
    • Component/s: Project Infra
    • Labels:
      None

      Description

      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.

      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
      

        Attachments

          Activity

            People

            • Assignee:
              dongjoon Dongjoon Hyun
              Reporter:
              dongjoon Dongjoon Hyun
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: