devmadhuu commented on PR #12063:
URL: https://github.com/apache/ozone/pull/12063#issuecomment-7164851117

   > Should mis-replication correction also fall back from SSD to DISK when no 
suitable SSD target is available? This could improve replica placement, but it 
would also move a replica to a different storage tier.
   
   I'd keep `mis-replication` strict, with no fallback. A mis-replicated RATIS 
container already has all its replicas; only the rack spread is wrong. 
Decommission doesn't wait on it (DatanodeAdminMonitorImpl checks only 
under-replication), and the handler retries every cycle, so data is not at 
risk. A DISK fallback would copy to DISK, and then over-replication, which 
ignores storage type, may delete an SSD replica. Nothing moves it back to SSD 
later, so we'd trade a healthy SSD replica for a DISK one just to improve rack 
spread. Under-replication is different, because a replica is missing and 
decommission is blocked, which is why the fallback belongs there. It would help 
to log clearly, and maybe add a test, when mis-replication is skipped because 
no target of the container's tier exists.


-- 
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