Gargi-jais11 opened a new pull request, #8693:
URL: https://github.com/apache/ozone/pull/8693

   ## What changes were proposed in this pull request?
   [HDDS-12233](https://issues.apache.org/jira/browse/HDDS-12233) will help to 
improve the atomicity of container import. Revisit DiskBalancerTask#call to see 
if the flow can be improved accordingly.
   
   **Proposed Improvement -**
   
   1. Copy Container: The existing logic to copy the container to a temporary 
directory on the destination disk remains the same. This corresponds to Step 1 
`(Temp C1-CLOSED)`.
   2. Transition to RECOVERING: Before moving the container to its final 
location, modify its .container file in the temporary directory to change its 
state from `CLOSED `to `RECOVERING`. This corresponds to Step 2 `(Temp 
C1-RECOVERING)`.
   3. Move and Import: Move the container (now in a RECOVERING state) to its 
final directory and use the existing import logic. The Datanode will now see 
this container as RECOVERING. This corresponds to Step 3 (`C1-RECOVERING`).
   4. Finalize to CLOSED: After the container is successfully imported and 
registered in the ContainerSet, do final state transition to change it from 
`RECOVERING` back to `CLOSED`. This corresponds to Step 4 (C1-CLOSED).
   5. Delete Original: The original container on the source disk is deleted, as 
before. This corresponds to Steps 5 and 6.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-12434
   
   ## How was this patch tested?
   
   Passed Existing Tests.
   


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