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

Fix findbugs warnings in SLSCapacityScheduler.java

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.0, 2.7.4, 2.8.2
    • Component/s: None
    • Labels:
      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.01.patch
          2 kB
          Akira Ajisaka
        2. YARN-6719-branch-2.8-01.patch
          2 kB
          Akira Ajisaka

        Issue Links

          Activity

            People

            • Assignee:
              aajisaka Akira Ajisaka
              Reporter:
              aajisaka Akira Ajisaka

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment