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

Code cleanup in LeveldbConfigurationStore

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.3.0, 3.4.0
    • 3.3.0, 3.2.2, 3.4.0
    • resourcemanager
    • None
    • Reviewed

    Description

      Many things can be improved:

      • Field compactionTimer could be a local variable
      • Field versiondb should be camelcase
      • initDatabase is a very long method: Initialize db / versionDb should be in separate methods, split this method into smaller chunks
      • Remove TODOs
      • Remove duplicated code block in LeveldbConfigurationStore.CompactionTimerTask
      • Any other cleanup

      Attachments

        1. YARN-9998.001.patch
          10 kB
          Benjamin Teke
        2. YARN-9998.002.patch
          9 kB
          Benjamin Teke
        3. YARN-9998.branch-3.2.001.patch
          8 kB
          Benjamin Teke

        Issue Links

          Activity

            People

              bteke Benjamin Teke
              snemeth Szilard Nemeth
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: