You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Doroszlai, Attila (JIRA)" <ji...@apache.org> on 2017/03/30 08:24:41 UTC

[jira] [Created] (AMBARI-20625) Hadoop QA javac warnings increase check is broken

Doroszlai, Attila created AMBARI-20625:
------------------------------------------

             Summary: Hadoop QA javac warnings increase check is broken
                 Key: AMBARI-20625
                 URL: https://issues.apache.org/jira/browse/AMBARI-20625
             Project: Ambari
          Issue Type: Bug
            Reporter: Doroszlai, Attila
            Assignee: Doroszlai, Attila
             Fix For: 3.0.0


The [test-patch.sh|https://github.com/apache/ambari/blob/trunk/dev-support/test-patch.sh] script run by Hadoop QA for the [Ambari-trunk-test-patch job|https://builds.apache.org/job/Ambari-trunk-test-patch/] checks if the patch increases the number of compiler warnings.

This check is broken, because {{javac}} does not print warnings by default, and our POMs do not set {{-Xlint}}.  Currently the output only includes a sample of warnings, plus a hint to set {{-Xlint}}.

{noformat}
[INFO] /home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/main/java/org/apache/ambari/server/view/ImpersonatorSettingImpl.java: Some input files use or override a deprecated API.
[INFO] /home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/main/java/org/apache/ambari/server/view/ImpersonatorSettingImpl.java: Recompile with -Xlint:deprecation for details.
[INFO] /home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/main/java/org/apache/ambari/server/state/ServiceInfo.java: Some input files use unchecked or unsafe operations.
[INFO] /home/jenkins/jenkins-slave/workspace/Ambari-trunk-test-patch/ambari/ambari-server/src/main/java/org/apache/ambari/server/state/ServiceInfo.java: Recompile with -Xlint:unchecked for details.
{noformat}

https://builds.apache.org/job/Ambari-trunk-test-patch/11186/artifact/patch-work/trunkJavacWarnings.txt
https://builds.apache.org/job/Ambari-trunk-test-patch/11186/artifact/patch-work/patchJavacWarnings.txt



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)