devmadhuu commented on code in PR #8823:
URL: https://github.com/apache/ozone/pull/8823#discussion_r2216221644
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/NSSummaryTaskDbEventHandler.java:
##########
@@ -62,16 +63,38 @@ protected void writeNSSummariesToDB(Map<Long, NSSummary>
nsSummaryMap)
try (RDBBatchOperation rdbBatchOperation = new RDBBatchOperation()) {
for (Map.Entry<Long, NSSummary> entry : nsSummaryMap.entrySet()) {
try {
- reconNamespaceSummaryManager.batchStoreNSSummaries(rdbBatchOperation,
- entry.getKey(), entry.getValue());
+
reconNamespaceSummaryManager.batchStoreNSSummaries(rdbBatchOperation,
entry.getKey(), entry.getValue());
} catch (IOException e) {
- LOG.error("Unable to write Namespace Summary data in Recon DB.",
- e);
+ LOG.error("Unable to write Namespace Summary data in Recon DB.", e);
throw e;
}
}
reconNamespaceSummaryManager.commitBatchOperation(rdbBatchOperation);
}
+ LOG.debug("Successfully written Namespace Summary data in Recon DB.");
+ }
+
+ protected void deleteNSSummariesFromDB(Collection<Long>
objectIdsToBeDeleted) {
+ try {
+ addAndCommitToDeleteNSSummaries(objectIdsToBeDeleted);
Review Comment:
@sumitagrawl Thanks for the review. All review comments addressed. Kindly
re-review.
--
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]