Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12958

Ozone: remove setAllocatedBytes method in ContainerInfo

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None
    • None
    • Reviewed

    Description

      We may want to remove setAllocatedBytes method from ContainerInfo and we keep all fields of ContainerInfo immutable, such that client won't accidentally change ContainerInfo and rely on the changed instance.

      An alternative of having setAllocatedBytes is to always create a new ContainerInfo instance whenever it needs to be changed.

      This is based on this comment from HDFS-12751.

      Attachments

        Activity

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

          People

            vagarychen Chen Liang
            vagarychen Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment