F64116045 commented on code in PR #10928:
URL: https://github.com/apache/ozone/pull/10928#discussion_r3831860785


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/SCMNodeManager.java:
##########
@@ -1090,7 +1098,7 @@ public void opAdded(ContainerReplicaOp op, ContainerID 
containerID) {
     if (op.getOpType() == ContainerReplicaOp.PendingOpType.ADD) {
       DatanodeInfo dnInfo = getNode(op.getTarget().getID());
       if (dnInfo != null) {
-        recordAllocationForDatanode(dnInfo, containerID);
+        recordAllocationForDatanode(dnInfo, containerID, StorageType.DEFAULT);

Review Comment:
   Thanks for catching. I missed that path. Fixed.
   It now carries the type from `containerInfo` instead of defaulting in 
`opAdded`. Added a small SSD test too.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to