Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-7759 Improve Ozone Replication Manager
  3. HDDS-8359

ReplicationManager: Fix getContainerReplicationHealth() so that it builds ContainerCheckRequest correctly

    XMLWordPrintableJSON

Details

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

    Description

      getContainerReplicationHealth() in ReplicationManager does not set pendingOps and maintenanceRedundancy when building ContainerCheckRequest. This leads to errors such as:

      scm_1         | java.lang.NullPointerException
      scm_1         | 	at java.base/java.util.Collections$UnmodifiableCollection.<init>(Collections.java:1030)
      scm_1         | 	at java.base/java.util.Collections$UnmodifiableList.<init>(Collections.java:1303)
      scm_1         | 	at java.base/java.util.Collections.unmodifiableList(Collections.java:1290)
      scm_1         | 	at org.apache.hadoop.hdds.scm.container.replication.ContainerCheckRequest.<init>(ContainerCheckRequest.java:45)
      scm_1         | 	at org.apache.hadoop.hdds.scm.container.replication.ContainerCheckRequest.<init>(ContainerCheckRequest.java:31)
      scm_1         | 	at org.apache.hadoop.hdds.scm.container.replication.ContainerCheckRequest$Builder.build(ContainerCheckRequest.java:119)
      scm_1         | 	at org.apache.hadoop.hdds.scm.container.replication.ReplicationManager.getContainerReplicationHealth(ReplicationManager.java:923)
      scm_1         | 	at org.apache.hadoop.hdds.scm.container.balancer.MoveManager.move(MoveManager.java:253)
      ...
      

      Attachments

        Issue Links

          Activity

            People

              siddhant Siddhant Sangwan
              siddhant Siddhant Sangwan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: