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

Add containers to node2container map in SCM as part of ICR processing

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.5.0
    • SCM
    • Done

    Description

      In SCM node2container and node2pipeline maps are managed by NodeManager and pipeline2container map is managed by PipelineManager.
      Currently, when a container is allocated in SCM, it is added to pipeline2container map and we are not adding it to node2container map. We update the node2container map only when the datanode sends full container report.

      When a node is marked as dead, DeadNodeHandler processes the event and it gets the list of containers that are hosted by the dead datanode and updates the respective container replica state in ContainerManager. The list of containers on the datanode is read from node2container map, this map will be missing containers which are created recently (after the last container report). In such cases we not be able to remove the container replica information for those containers. In reality, these containers are under replicated, but SCM will never know.

      We should add containers to node2container map in SCM as soon as a container is allocated.

      Attachments

        Issue Links

          Activity

            People

              nanda Nandakumar
              nanda Nandakumar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h