priyeshkaratha opened a new pull request, #9933:
URL: https://github.com/apache/ozone/pull/9933

   ## 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 
updates its internal references to ReconOmTask instances. This prevents tasks 
from operating on stale in-memory states, 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 
correctly replace existing ReconOmTask instances with newly created staged 
tasks after a reprocess operation. 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 task references and maintains accurate 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


-- 
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]

Reply via email to