Sergey Svinarchuk created SQOOP-2926:
----------------------------------------

             Summary: Sqoop build failed with xml.etree.ElementTree.ParseError: 
syntax error: line 1, column 49
                 Key: SQOOP-2926
                 URL: https://issues.apache.org/jira/browse/SQOOP-2926
             Project: Sqoop
          Issue Type: Bug
          Components: build
    Affects Versions: 1.4.6
            Reporter: Sergey Svinarchuk


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
{code}
  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()
{code}

This is error:
{code}
     [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
{code}





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to