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

A small improvement of SerialNumberManager$SerialNumberMap.get

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Invalid
    • 3.0.0-alpha1
    • 3.0.0-alpha1
    • None
    • None

    Description

      Instead of use containsKey() + get() to get the value from the HashMap, we can do get() once and check if the result is null

      Attachments

        1. HDFS-3805.patch
          0.9 kB
          Jing Zhao
        2. HDFS-3805.patch
          0.8 kB
          Jing Zhao

        Issue Links

          Activity

            People

              jingzhao Jing Zhao
              jingzhao Jing Zhao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: