Tejaskriya commented on code in PR #8321:
URL: https://github.com/apache/ozone/pull/8321#discussion_r2238818707
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/common/impl/HddsDispatcher.java:
##########
@@ -288,7 +288,12 @@ && getMissingContainerSet().contains(containerID)) {
* to get the container created in non writing nodes. If replica index is
* >0 then we know it's for ec container.
*/
- if (container == null && ((isWriteStage || isCombinedStage)
+ boolean shouldWriteChunkCreateMissingContainer = (isWriteStage ||
isCombinedStage);
+ if (shouldWriteChunkCreateMissingContainer &&
msg.getWriteChunk().hasShouldCreateMissingContainer()) {
+ shouldWriteChunkCreateMissingContainer =
msg.getWriteChunk().getShouldCreateMissingContainer();
+ }
Review Comment:
Not exactly understanding the reason behind this code, the condition is
satisfied only if both are true, why are we reassigning
`shouldWriteChunkCreateMissingContainer` to true when it already was true?
--
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]