slfan1989 commented on code in PR #7266:
URL: https://github.com/apache/ozone/pull/7266#discussion_r1840598888
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/volume/StorageVolume.java:
##########
@@ -548,6 +571,11 @@ public ConfigurationSource getConf() {
public void failVolume() {
setState(VolumeState.FAILED);
+ // Ensure it is set only once,
+ // which is the time when the failure was first detected.
+ if (failureDate == 0L) {
+ setFailureDate(Time.now());
Review Comment:
@errose28 Can you help review this PR again? Thank you very much!
--
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]