You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by ch...@apache.org on 2026/08/23 22:52:49 UTC
(ozone) branch master updated: HDDS-16215. Avoid the per-group list copy in OmMetadataManagerImpl.getBlocksForKeyDeletetBlocksForKeyDelete (#11089)
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 <31...@users.noreply.github.com>
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: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org