ArafatKhan2198 commented on PR #7796:
URL: https://github.com/apache/ozone/pull/7796#issuecomment-2666921867

   @adoroszlai @devmadhuu 
   New changes :- 
   - A static lock object (`TRUNCATE_LOCK`) was introduced in the helper class. 
This ensures that when one task is inside this block (performing the deletion), 
any other task that calls `truncateTableIfNeeded` will block at the 
synchronized statement until the first task finishes.
   - If truncation fails due to an **unexpected error**, we now **reset the 
flag** (`FILE_SIZE_COUNT_TABLE_TRUNCATED.set(false)`) so future tasks can retry 
the truncation.


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