sodonnel commented on a change in pull request #3110:
URL: https://github.com/apache/ozone/pull/3110#discussion_r812308095
##########
File path:
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerManagerImpl.java
##########
@@ -414,13 +408,12 @@ public void notifyContainerReportProcessing(final boolean
isFullReport,
}
@Override
- public void deleteContainer(final ContainerID id)
+ public void deleteContainer(final ContainerID cid)
throws IOException {
- final HddsProtos.ContainerID cid = id.getProtobuf();
lock.lock();
try {
if (containerExist(cid)) {
- containerStateManager.removeContainer(cid);
+ containerStateManager.removeContainer(cid.getProtobuf());
Review comment:
Same here - the `getProtobuf()` call is inside the the lock, but before
it was outside it.
--
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]