Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2299

jetty 6.1.14 startup issue causes unit tests to fail in CI

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.8.0
    • 0.9.1
    • build
    • None
    • RHEL CI server

    • Patch Available
    • Reviewed

    Description

      We have observed random unit test failures in our pig CI. Same tests working just fine when run on developer machine).

      The cause is a bug in jetty version used by pig, example below and more here:

      https://issues.apache.org/jira/browse/HADOOP-6386
      https://issues.apache.org/jira/browse/HADOOP-6428
      https://issues.apache.org/jira/browse/HADOOP-6528
      http://jira.codehaus.org/browse/JETTY-748

      The issue is resolved by using jetty 6.1.21 instead of 6.1.14

      java.lang.ExceptionInInitializerError
      at org.apache.pig.test.TestAlgebraicInstantiation.<init>(TestAlgebraicInstantiation.java:41)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      Caused by: java.lang.IllegalArgumentException: port out of range:-1
      at java.net.InetSocketAddress.<init>(InetSocketAddress.java:118)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.startHttpServer(NameNode.java:250)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:202)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:279)
      at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:956)
      at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:275)
      at org.apache.hadoop.hdfs.MiniDFSCluster.<init>(MiniDFSCluster.java:119)
      at org.apache.pig.test.MiniCluster.setupMiniDfsAndMrClusters(MiniCluster.java:49)
      at org.apache.pig.test.MiniGenericCluster.<init>(MiniGenericCluster.java:49)
      at org.apache.pig.test.MiniCluster.<init>(MiniCluster.java:31)
      at org.apache.pig.test.MiniGenericCluster.<clinit>(MiniGenericCluster.java:45)

      Attachments

        1. PIG-2299_jetty-6.1.26.patch
          1 kB
          Thomas Weise

        Activity

          People

            Unassigned Unassigned
            thw Thomas Weise
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: