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

Datanode usage info uses wrong version number

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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 Siddhant Sangwan, Lokesh Jain

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment