swamirishi commented on code in PR #7934:
URL: https://github.com/apache/ozone/pull/7934#discussion_r1963791175
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainer.java:
##########
@@ -666,7 +667,8 @@ public void importContainerData(InputStream input,
public void importContainerData(KeyValueContainerData originalContainerData)
throws IOException {
- containerData.setState(originalContainerData.getState());
+ // place the container in the Recovering state while it is being imported
+ containerData.setState(RECOVERING);
Review Comment:
This will not affect the container state on disk.
We need to change the container state before we do an atomic move and keep
the original state of the container in memory.
https://github.com/apache/ozone/blob/7f11b7b55980024f65cfb5450070597a03fcfbee/hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/TarContainerPacker.java#L102
--
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]