priyeshkaratha commented on code in PR #11181:
URL: https://github.com/apache/ozone/pull/11181#discussion_r3954273817
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/MultipartInfoInsightHandler.java:
##########
@@ -228,6 +239,60 @@ private void applyLegacyPartSizes(OmMultipartKeyInfo
multipartKeyInfo, String ta
});
}
+ /**
+ * Adds (or subtracts) the sizes of a split-schema MPU's parts from the size
maps by querying
+ * the multipartPartsTable. For legacy-schema MPUs, this method does nothing
(their parts are
+ * embedded and handled by applyLegacyPartSizes).
+ *
+ * @param multipartKeyInfo The MPU metadata.
+ * @param multipartKey The MPU key (used to extract uploadId).
+ * @param tableName The table name.
+ * @param unReplicatedSizeMap Map to update with unreplicated sizes.
+ * @param replicatedSizeMap Map to update with replicated sizes.
+ * @param add {@code true} to add sizes, {@code false} to subtract.
+ * @param omMetadataManager OM metadata manager for accessing
multipartPartsTable.
+ */
+ private void applySplitSchemaPartSizes(OmMultipartKeyInfo multipartKeyInfo,
String multipartKey, String tableName,
Review Comment:
Each part event is now handled in O(1) and no RocksDB scans on the hot path.
OmTableInsightTask wires MULTIPART_PARTS_TABLE events into this handler while
preserving the existing generic per-table object-count tracking
(multipartPartsTableCount) that already existed for this unregistered table.
Also updated testcases.
--
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]