errose28 commented on code in PR #12139:
URL: https://github.com/apache/ozone/pull/12139#discussion_r4687009616


##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueHandler.java:
##########
@@ -504,6 +504,9 @@ ContainerCommandResponseProto handleCreateContainer(
     containerIdLock.lock();
     try {
       if (containerSet.getContainer(containerID) == null) {
+        if (containerState != RECOVERING) {

Review Comment:
   `containerSet#addContainer` calls `ensureContainerNotMissing`, not 
`ensureContainerNotWitnessed`. I agree the existing witness DB usage is messy 
and confusing. I'm hopeful that strange things like this can be worked out in a 
design doc once we have a minimal fix for the immediate issue.



-- 
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]

Reply via email to