Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13159

Fix potential NPE in Metrics2 source for DecayRpcScheduler

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: ipc
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      HADOOP-12985 introduced a few metrics2 counters for DecayRpcScheduler. The counters should be initialized before the updater thread is created/executed. Otherwise, this is a chance of NPE if the updater thread get executed before the counters are fully initialized. I will post a patch for it shortly.

        Attachments

        1. HADOOP-13159.02.patch
          2 kB
          Xiaoyu Yao
        2. HADOOP-13159.01.patch
          2 kB
          Xiaoyu Yao
        3. HADOOP-13159.00.patch
          2 kB
          Xiaoyu Yao

          Issue Links

            Activity

              People

              • Assignee:
                xyao Xiaoyu Yao
                Reporter:
                xyao Xiaoyu Yao
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: