errose28 commented on code in PR #7127:
URL: https://github.com/apache/ozone/pull/7127#discussion_r1804966711
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/ContainerData.java:
##########
@@ -78,7 +78,7 @@ public abstract class ContainerData {
private String chunksPath;
// State of the Container
- private ContainerDataProto.State state;
Review Comment:
Synchronized lets multiple threads call those methods safely. That part is
already in the code. Volatile makes those threads read the latest value when
they call the methods. It is necessary for correctness.
--
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]