Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6719

Fix findbugs warnings in SLSCapacityScheduler.java

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 2.7.4, 2.8.2
    • None
    • None

    Description

      There are 2 findbugs warnings in branch-2. https://builds.apache.org/job/PreCommit-HADOOP-Build/12560/artifact/patchprocess/branch-findbugs-hadoop-tools_hadoop-sls-warnings.html

      Dm	Found reliance on default encoding in org.apache.hadoop.yarn.sls.scheduler.SLSCapacityScheduler.initMetrics(): new java.io.FileWriter(String)
      Bug type DM_DEFAULT_ENCODING (click for details) 
      In class org.apache.hadoop.yarn.sls.scheduler.SLSCapacityScheduler
      In method org.apache.hadoop.yarn.sls.scheduler.SLSCapacityScheduler.initMetrics()
      Called method new java.io.FileWriter(String)
      At SLSCapacityScheduler.java:[line 464]
      
      Dm	Found reliance on default encoding in new org.apache.hadoop.yarn.sls.scheduler.SLSCapacityScheduler$MetricsLogRunnable(SLSCapacityScheduler): new java.io.FileWriter(String)
      Bug type DM_DEFAULT_ENCODING (click for details) 
      In class org.apache.hadoop.yarn.sls.scheduler.SLSCapacityScheduler$MetricsLogRunnable
      In method new org.apache.hadoop.yarn.sls.scheduler.SLSCapacityScheduler$MetricsLogRunnable(SLSCapacityScheduler)
      Called method new java.io.FileWriter(String)
      At SLSCapacityScheduler.java:[line 669]
      

      Attachments

        1. YARN-6719-branch-2.8-01.patch
          2 kB
          Akira Ajisaka
        2. YARN-6719-branch-2.01.patch
          2 kB
          Akira Ajisaka

        Issue Links

          Activity

            People

              aajisaka Akira Ajisaka
              aajisaka Akira Ajisaka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: