[
https://issues.apache.org/jira/browse/HDDS-14669?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen O'Donnell updated HDDS-14669:
-------------------------------------
Description:
The original scm finalize command blocked until SCM and enough datanodes had
finalized. The new design is that the finalize command should kick off the
finalize process and then return immediately. Any other process which needs to
see the progress must call the finalize status command to see if it has
completed or not.
This change adds a new protobuf message which triggers finalize and returns.
There is a new "ozone admin upgrade finalize" command which triggers finalize.
The existing tests are adjusted so they call the new command and then poll the
status command to see if finalize has completed or not.
was:SCMUpgradeFinalizer.waitForDatanodesToFinalize() currently enters a loop
with a sleep (mirroring the original code this replaced) while it waits for
finalize to complete. We want to change this to avoid blocking a thread and
instead use the DN heartbeats and a polling mechanism to wait for finalization
to complete instead.
> Implement a new async finalize command
> --------------------------------------
>
> Key: HDDS-14669
> URL: https://issues.apache.org/jira/browse/HDDS-14669
> Project: Apache Ozone
> Issue Type: Improvement
> Reporter: Stephen O'Donnell
> Assignee: Stephen O'Donnell
> Priority: Major
>
> The original scm finalize command blocked until SCM and enough datanodes had
> finalized. The new design is that the finalize command should kick off the
> finalize process and then return immediately. Any other process which needs
> to see the progress must call the finalize status command to see if it has
> completed or not.
> This change adds a new protobuf message which triggers finalize and returns.
> There is a new "ozone admin upgrade finalize" command which triggers finalize.
> The existing tests are adjusted so they call the new command and then poll
> the status command to see if finalize has completed or not.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]