Skip to content

HDDS-14844. Update reconOmTasks memory counter using init after reinit#9933

Open
priyeshkaratha wants to merge 2 commits intoapache:masterfrom
priyeshkaratha:HDDS-14844
Open

HDDS-14844. Update reconOmTasks memory counter using init after reinit#9933
priyeshkaratha wants to merge 2 commits intoapache:masterfrom
priyeshkaratha:HDDS-14844

Conversation

@priyeshkaratha
Copy link
Contributor

@priyeshkaratha priyeshkaratha commented Mar 17, 2026

What changes were proposed in this pull request?

This pull request resolves a data consistency issue within Recon's task management by ensuring that after a reprocess operation, the system correctly re -initialize in memory maps which could lead to incorrect data aggregation. The changes also enhance the robustness of the re-initialization process with improved error handling and are thoroughly validated by a new dedicated test case.

The reInitializeTasks method in ReconTaskControllerImpl was updated to call init. This ensures that subsequent delta events are processed by the fresh in-memory state of the tasks, preventing stale data issues.

A new JUnit test, TestOmTableInsightTaskStaleCounterAfterReinit, was added. This test provides end-to-end validation that reInitializeTasks correctly updates counters after re-initialization, specifically demonstrating the fix for stale counter issues.

What is the link to the Apache JIRA

HDDS-14844

How was this patch tested?

Tested using unit testcase, TestOmTableInsightTaskStaleCounterAfterReinit

@priyeshkaratha priyeshkaratha marked this pull request as ready for review March 18, 2026 04:33
@priyeshkaratha priyeshkaratha changed the title HDDS-14844. Update reconOmTasks with newly created tasks after reprocess HDDS-14844. Update reconOmTasks memory counter using init after reinit Mar 18, 2026
@devmadhuu devmadhuu self-requested a review March 20, 2026 07:38
Copy link
Contributor

@devmadhuu devmadhuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @priyeshkaratha for the patch. Changes LGTM + 1. Just few nits.

Copy link
Contributor

@devmadhuu devmadhuu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @priyeshkaratha for improving the patch. LGTM +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants