Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-8926 Umbrella for further EC improvements
  3. HDDS-8854

Avoid unnecessary DatanodeDetails creation for NodeStateManager lookup

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Implemented
    • None
    • 1.4.0
    • SCM

    Description

        public DatanodeInfo getNode(DatanodeDetails datanodeDetails)
            throws NodeNotFoundException {
          return nodeStateMap.getNodeInfo(datanodeDetails.getUuid());
      

      Some callers create DatanodeDetails just for the lookup. These could be avoided by an overloaded method accepting UUID directly.

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: