F64116045 commented on code in PR #10928:
URL: https://github.com/apache/ozone/pull/10928#discussion_r3813878361
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/PendingContainerTracker.java:
##########
@@ -117,25 +119,37 @@ synchronized void rollIfNeeded() {
}
synchronized boolean contains(ContainerID containerID) {
- return currentWindow.contains(containerID) ||
previousWindow.contains(containerID);
+ return currentWindow.containsKey(containerID) ||
previousWindow.containsKey(containerID);
}
/**
* Add container to current window.
*/
synchronized boolean add(ContainerID containerID) {
Review Comment:
Removed the untyped `add(...)` method. Thanks.
--
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]