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 79464b60d76 HDDS-16213. Avoid the per-group list copy in 
KeyManagerImpl.getPendingDeletionKeys (#11082)
79464b60d76 is described below

commit 79464b60d7661e89a5d934623a6998f7aff6cbca
Author: orca-07 <[email protected]>
AuthorDate: Mon Aug 24 17:11:49 2026 +0800

    HDDS-16213. Avoid the per-group list copy in 
KeyManagerImpl.getPendingDeletionKeys (#11082)
---
 .../src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java       | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
 
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
index fedda4e97ec..c6d929568f8 100644
--- 
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
+++ 
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/KeyManagerImpl.java
@@ -887,7 +887,8 @@ public PendingKeysDeletion getPendingDeletionKeys(
             // Skip the key if the filter doesn't allow the file to be deleted.
             if (filter == null || filter.apply(Table.newKeyValue(kv.getKey(), 
info))) {
               List<DeletedBlock> deletedBlocks = 
info.getKeyLocationVersions().stream()
-                  .flatMap(versionLocations -> 
versionLocations.createLocationList().stream()
+                  .flatMap(versionLocations -> 
versionLocations.getLocationLists().stream()
+                      .flatMap(List::stream)
                       .map(b -> new DeletedBlock(
                           new BlockID(b.getContainerID(), b.getLocalID()),
                           b.getLength(),


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

Reply via email to