This is an automated email from the ASF dual-hosted git repository.

sarvekshayr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b4de65e33c HDDS-16204. Avoid the per-group list copy in 
ContainerToKeyMapping.getContainers (#11047)
5b4de65e33c is described below

commit 5b4de65e33c1a2ad4863ed75136da3b2824abc14
Author: Mark Tsai <[email protected]>
AuthorDate: Thu Aug 20 13:11:40 2026 +0800

    HDDS-16204. Avoid the per-group list copy in 
ContainerToKeyMapping.getContainers (#11047)
---
 .../hadoop/ozone/debug/om/ContainerToKeyMapping.java      | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git 
a/hadoop-ozone/cli-debug/src/main/java/org/apache/hadoop/ozone/debug/om/ContainerToKeyMapping.java
 
b/hadoop-ozone/cli-debug/src/main/java/org/apache/hadoop/ozone/debug/om/ContainerToKeyMapping.java
index 14559dad3f1..4e625f64b0b 100644
--- 
a/hadoop-ozone/cli-debug/src/main/java/org/apache/hadoop/ozone/debug/om/ContainerToKeyMapping.java
+++ 
b/hadoop-ozone/cli-debug/src/main/java/org/apache/hadoop/ozone/debug/om/ContainerToKeyMapping.java
@@ -387,13 +387,14 @@ private Set<Long> getSplitPartContainers(String 
multipartInfoDbKey, Set<Long> ta
   private Set<Long> getContainers(List<OmKeyLocationInfoGroup> 
locationVersions, Set<Long> targetContainerIds) {
     Set<Long> keyContainers = new HashSet<>();
     locationVersions.forEach(
-        e -> e.getLocationList().forEach(
-            blk -> {
-              long cid = blk.getBlockID().getContainerID();
-              if (targetContainerIds.contains(cid)) {
-                keyContainers.add(cid);
-              }
-            }));
+        e -> e.getLocationLists().forEach(
+            locationList -> locationList.forEach(
+                blk -> {
+                  long cid = blk.getBlockID().getContainerID();
+                  if (targetContainerIds.contains(cid)) {
+                    keyContainers.add(cid);
+                  }
+                })));
     return keyContainers;
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to