Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6418

Datanode usage info uses wrong version number

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.3.0
    • SCM

    Description

      DatanodeUsageInfo passes datanode version (datanodeDetails.getCurrentVersion()) to the toProto method instead of client version.

        private HddsProtos.DatanodeUsageInfoProto.Builder toProtoBuilder() {
          HddsProtos.DatanodeUsageInfoProto.Builder builder =
              HddsProtos.DatanodeUsageInfoProto.newBuilder();
      
          if (datanodeDetails != null) {
            builder.setNode(
                datanodeDetails.toProto(datanodeDetails.getCurrentVersion()));
          }
          if (scmNodeStat != null) {
            builder.setCapacity(scmNodeStat.getCapacity().get());
            builder.setUsed(scmNodeStat.getScmUsed().get());
            builder.setRemaining(scmNodeStat.getRemaining().get());
          }
          return builder;
        }
      

      CC siddhantsangwan, ljain

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: