devmadhuu commented on code in PR #7743:
URL: https://github.com/apache/ozone/pull/7743#discussion_r1932393592
##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/tasks/OmTableInsightTask.java:
##########
@@ -295,21 +286,23 @@ private void writeDataToDB(Map<String, Long> dataMap) {
globalStatsDao.insert(insertGlobalStats);
globalStatsDao.update(updateGlobalStats);
+
+ insertGlobalStats.clear();
+ updateGlobalStats.clear();
}
/**
* Initializes and returns a count map with the counts for the tables.
*
* @return The count map containing the counts for each table.
*/
- private HashMap<String, Long> initializeCountMap() {
- Collection<String> tables = getTaskTables();
Review Comment:
Before initialising count map , we are already initialising taskTables in
`reprocess`. Please explain what issue you see here.
--
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]