You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "F64116045 (via GitHub)" <gi...@apache.org> on 2026/08/07 00:58:42 UTC
[PR] HDDS-11620. Log SCM finalization completion [ozone]
F64116045 opened a new pull request, #10963:
URL: https://github.com/apache/ozone/pull/10963
## What changes were proposed in this pull request?
SCM logs when upgrade finalization crosses the `FINALIZATION_STARTED` and
`MLV_EQUALS_SLV` checkpoints, but it did not log after crossing
`FINALIZATION_COMPLETE`. This made it difficult for operators to determine
from the SCM log whether finalization completed successfully.
This change logs the `FINALIZATION_COMPLETE` checkpoint after the finalizing
marker is removed successfully. It also extends the SCM finalization test to
verify that the completion message is emitted when finalization advances to
the completed state, but not when SCM is already finalized.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-11620
## How was this patch tested?
```shell
mvn -pl hadoop-hdds/server-scm -am -Dtest=TestScmFinalization \
-Dsurefire.failIfNoSpecifiedTests=false -DskipShade -DskipRecon \
-DskipDocs test
mvn -pl hadoop-hdds/server-scm -DskipTests -DskipShade -DskipRecon \
-DskipDocs checkstyle:check
```
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-11620. Log SCM finalization completion [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on PR #10963:
URL: https://github.com/apache/ozone/pull/10963#issuecomment-5264075093
Thanks @F64116045 for the patch. Thanks @chihsuan @sreejasahithi @chungen0126 @rich7420 for the reviews.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-11620. Log SCM finalization completion [ozone]
Posted by "F64116045 (via GitHub)" <gi...@apache.org>.
F64116045 commented on code in PR #10963:
URL: https://github.com/apache/ozone/pull/10963#discussion_r3741040439
##########
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/upgrade/TestScmFinalization.java:
##########
@@ -231,8 +233,19 @@ public void testResumeFinalizationFromCheckpoint(
// Execute upgrade finalization, then check that events happened in the
// correct order.
- StatusAndMessages status =
- manager.finalizeUpgrade(UUID.randomUUID().toString());
+ LogCapturer logCapturer =
Review Comment:
Thanks @chihsuan for reviewing.
> What do you think about adding a failure-path test for removeFinalizingMark()?
I think this makes sense. Added a test for this. Thanks for the suggestion!
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-11620. Log SCM finalization completion [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl merged PR #10963:
URL: https://github.com/apache/ozone/pull/10963
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-11620. Log SCM finalization completion [ozone]
Posted by "chihsuan (via GitHub)" <gi...@apache.org>.
chihsuan commented on code in PR #10963:
URL: https://github.com/apache/ozone/pull/10963#discussion_r3740242090
##########
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/upgrade/TestScmFinalization.java:
##########
@@ -231,8 +233,19 @@ public void testResumeFinalizationFromCheckpoint(
// Execute upgrade finalization, then check that events happened in the
// correct order.
- StatusAndMessages status =
- manager.finalizeUpgrade(UUID.randomUUID().toString());
+ LogCapturer logCapturer =
Review Comment:
What do you think about adding a failure-path test for `removeFinalizingMark()`? Verifying that no completion log is emitted would make the intended behavior explicit.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org
Re: [PR] HDDS-11620. Log SCM finalization completion [ozone]
Posted by "smengcl (via GitHub)" <gi...@apache.org>.
smengcl commented on PR #10963:
URL: https://github.com/apache/ozone/pull/10963#issuecomment-5264073094
CI on fork is green: https://github.com/F64116045/ozone/actions/runs/31265972256
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org