Uploaded image for project: 'Sqoop (Retired)'
  1. Sqoop (Retired)
  2. SQOOP-2926

Sqoop build failed with xml.etree.ElementTree.ParseError: syntax error: line 1, column 49

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.4.6
    • None
    • build
    • None

    Description

      Sqoop build sometimes failed during creation relnotes. This bug is randomly occurring (one build can be successful, but next - failed). I think that it could be issue with download xml file from https://issues.apache.org

        xml = os.popen("curl -s 'https://issues.apache.org/jira/si/jira.issueviews:" \
            + "issue-xml/%s/%s.xml?field=key&field=type&field=parent'" % (issue, issue)).read()
      

      This is error:

           [exec] rm web/index.xml
           [exec] make[1]: Leaving directory `/root/opensource/sqoop-1.4.6/src/docs'
          [touch] Creating /root/opensource/sqoop-1.4.6/build/docs.timestamp
      
      relnotes-uptodate:
      
      relnotes:
           [exec] Traceback (most recent call last):
           [exec]   File "/root/opensource/sqoop-1.4.6/src/scripts/relnotes.py", line 251, in <module>
           [exec]     sys.exit(main(sys.argv))
           [exec]   File "/root/opensource/sqoop-1.4.6/src/scripts/relnotes.py", line 238, in main
           [exec]     jira_info = get_jira_issue_types(log)   
           [exec]   File "/root/opensource/sqoop-1.4.6/src/scripts/relnotes.py", line 111, in get_jira_issue_types
           [exec]     doc = get_jira_doc(jira)
           [exec]   File "/root/opensource/sqoop-1.4.6/src/scripts/relnotes.py", line 88, in get_jira_doc
           [exec]     return ElementTree.fromstring(xml)
           [exec]   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1301, in XML
           [exec]     parser.feed(text)
           [exec]   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1643, in feed
           [exec]     self._raiseerror(v)
           [exec]   File "/usr/lib/python2.7/xml/etree/ElementTree.py", line 1507, in _raiseerror
           [exec]     raise err
           [exec] xml.etree.ElementTree.ParseError: syntax error: line 1, column 49
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            vaifer Sergey Svynarchuk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: