Sqoop
  1. Sqoop
  2. SQOOP-1008

Test TestClassWriter.testNoClassGeneration is failing on JDK7

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.4.3
    • Fix Version/s: 1.4.4
    • Component/s: None
    • Labels:
      None

      Description

      Test TestClassWriter.testNoClassGeneration is failing when using JDK7:

      Testcase: testNoClassGeneration took 0.016 sec
      	Caused an ERROR
      no source files
      java.lang.IllegalStateException: no source files
      	at com.sun.tools.javac.main.Main.error(Main.java:173)
      	at com.sun.tools.javac.main.Main.compile(Main.java:397)
      	at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132)
      	at org.apache.sqoop.orm.CompilationManager.compile(CompilationManager.java:205)
      	at com.cloudera.sqoop.orm.TestClassWriter.runFailedGenerationTest(TestClassWriter.java:514)
      	at com.cloudera.sqoop.orm.TestClassWriter.testNoClassGeneration(TestClassWriter.java:541)
      

      I think that this due to changed API as JDK6 seems to be throwing IOException instead of IllegalStateException.

      1. bugSQOOP-1008.patch
        0.8 kB
        Jarek Jarcec Cecho

        Issue Links

          Activity

          Hide
          Kathleen Ting added a comment -
          Show
          Kathleen Ting added a comment - Thanks Jarcec for your contribution. The patch is in: https://git-wip-us.apache.org/repos/asf?p=sqoop.git;a=commit;h=aa6813e36d3b35ecacbce914a163567b19dd03af
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop200 #625 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/625/)
          SQOOP-1008: Test TestClassWriter.testNoClassGeneration is failing on JDK7 (Revision aa6813e36d3b35ecacbce914a163567b19dd03af)

          Result = FAILURE
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=aa6813e36d3b35ecacbce914a163567b19dd03af
          Files :

          • src/test/com/cloudera/sqoop/orm/TestClassWriter.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop200 #625 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/625/ ) SQOOP-1008 : Test TestClassWriter.testNoClassGeneration is failing on JDK7 (Revision aa6813e36d3b35ecacbce914a163567b19dd03af) Result = FAILURE kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=aa6813e36d3b35ecacbce914a163567b19dd03af Files : src/test/com/cloudera/sqoop/orm/TestClassWriter.java
          Hide
          Jarek Jarcec Cecho added a comment -

          The failure in profile 200 seems to be some sort of issue on Jenkins side, will rerun the job.

          Show
          Jarek Jarcec Cecho added a comment - The failure in profile 200 seems to be some sort of issue on Jenkins side, will rerun the job.
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop20 #624 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/624/)
          SQOOP-1008: Test TestClassWriter.testNoClassGeneration is failing on JDK7 (Revision aa6813e36d3b35ecacbce914a163567b19dd03af)

          Result = SUCCESS
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=aa6813e36d3b35ecacbce914a163567b19dd03af
          Files :

          • src/test/com/cloudera/sqoop/orm/TestClassWriter.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop20 #624 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop20/624/ ) SQOOP-1008 : Test TestClassWriter.testNoClassGeneration is failing on JDK7 (Revision aa6813e36d3b35ecacbce914a163567b19dd03af) Result = SUCCESS kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=aa6813e36d3b35ecacbce914a163567b19dd03af Files : src/test/com/cloudera/sqoop/orm/TestClassWriter.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop23 #833 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/833/)
          SQOOP-1008: Test TestClassWriter.testNoClassGeneration is failing on JDK7 (Revision aa6813e36d3b35ecacbce914a163567b19dd03af)

          Result = SUCCESS
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=aa6813e36d3b35ecacbce914a163567b19dd03af
          Files :

          • src/test/com/cloudera/sqoop/orm/TestClassWriter.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop23 #833 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop23/833/ ) SQOOP-1008 : Test TestClassWriter.testNoClassGeneration is failing on JDK7 (Revision aa6813e36d3b35ecacbce914a163567b19dd03af) Result = SUCCESS kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=aa6813e36d3b35ecacbce914a163567b19dd03af Files : src/test/com/cloudera/sqoop/orm/TestClassWriter.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop-ant-jdk-1.6-hadoop100 #632 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/632/)
          SQOOP-1008: Test TestClassWriter.testNoClassGeneration is failing on JDK7 (Revision aa6813e36d3b35ecacbce914a163567b19dd03af)

          Result = SUCCESS
          kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=aa6813e36d3b35ecacbce914a163567b19dd03af
          Files :

          • src/test/com/cloudera/sqoop/orm/TestClassWriter.java
          Show
          Hudson added a comment - Integrated in Sqoop-ant-jdk-1.6-hadoop100 #632 (See https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop100/632/ ) SQOOP-1008 : Test TestClassWriter.testNoClassGeneration is failing on JDK7 (Revision aa6813e36d3b35ecacbce914a163567b19dd03af) Result = SUCCESS kathleen : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=aa6813e36d3b35ecacbce914a163567b19dd03af Files : src/test/com/cloudera/sqoop/orm/TestClassWriter.java

            People

            • Assignee:
              Jarek Jarcec Cecho
              Reporter:
              Jarek Jarcec Cecho
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development