This is an automated email from the ASF dual-hosted git repository.
chungen0126 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 9143e0e78a7 HDDS-16215. Avoid the per-group list copy in
OmMetadataManagerImpl.getBlocksForKeyDeletetBlocksForKeyDelete (#11089)
9143e0e78a7 is described below
commit 9143e0e78a79fb5081ef302e47340cefd522afc3
Author: orca-07 <[email protected]>
AuthorDate: Mon Aug 24 06:52:41 2026 +0800
HDDS-16215. Avoid the per-group list copy in
OmMetadataManagerImpl.getBlocksForKeyDeletetBlocksForKeyDelete (#11089)
---
.../main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
index 076efb309e5..31107792473 100644
---
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
+++
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OmMetadataManagerImpl.java
@@ -1959,7 +1959,8 @@ public List<BlockGroup> getBlocksForKeyDelete(String
deletedKey)
for (OmKeyInfo info : omKeyInfo.cloneOmKeyInfoList()) {
for (OmKeyLocationInfoGroup keyLocations :
info.getKeyLocationVersions()) {
- List<DeletedBlock> item = keyLocations.createLocationList().stream()
+ List<DeletedBlock> item = keyLocations.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]