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

Avoid String to UUID conversion in SCMNodeManager

    XMLWordPrintableJSON

Details

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

    Description

      SCMNodeManager#getNodeByUuid should support UUID param to avoid unnecessary conversion.

        public DatanodeDetails getNodeByUuid(String uuid) {
          if (Strings.isNullOrEmpty(uuid)) {
            LOG.warn("uuid is null");
            return null;
          }
          DatanodeDetails temp = DatanodeDetails.newBuilder()
              .setUuid(UUID.fromString(uuid)).build();
          try {
            return nodeStateManager.getNode(temp);
      

      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: