Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9217

Fix broken findbugsExcludeFile.xml for hadoop-hdfs-client module

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha1
    • Component/s: build
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The findbugsExcludeFile.xml file was broken and the findbugs complains as follows:

      [INFO] ------------------------------------------------------------------------
      [INFO] Building Apache Hadoop HDFS Client 3.0.0-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO]
      [INFO] --- findbugs-maven-plugin:3.0.0:findbugs (default-cli) @ hadoop-hdfs-client ---
      [INFO] Fork Value is true
           [java] The following errors occurred during analysis:
           [java]   Unable to read filter: /Users/mliu/Workspace/hadoop/hadoop-hdfs-project/hadoop-hdfs-client/target/findbugsExcludeFile.xml : The value of attribute "name" associated with an element type "Class" must not contain the '<' character.
           [java]     java.io.IOException: The value of attribute "name" associated with an element type "Class" must not contain the '<' character.
           [java]       At edu.umd.cs.findbugs.filter.Filter.<init>(Filter.java:134)
           [java]       At edu.umd.cs.findbugs.FindBugs.configureFilter(FindBugs.java:516)
           [java]       At edu.umd.cs.findbugs.FindBugs2.addFilter(FindBugs2.java:374)
           [java]       At edu.umd.cs.findbugs.FindBugs2.configureFilters(FindBugs2.java:521)
           [java]       At edu.umd.cs.findbugs.FindBugs2.setUserPreferences(FindBugs2.java:475)
           [java]       At edu.umd.cs.findbugs.TextUICommandLine.configureEngine(TextUICommandLine.java:685)
           [java]       At edu.umd.cs.findbugs.FindBugs.processCommandLine(FindBugs.java:361)
           [java]       At edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1188)
           [java] Warnings generated: 748
      [INFO] Done FindBugs Analysis....
      

      The reason is that in HDFS-9182, the newly added lines contain “ character, which should be ".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                liuml07 Mingliang Liu
                Reporter:
                liuml07 Mingliang Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified