jiafu1115 commented on PR #21361: URL: https://github.com/apache/kafka/pull/21361#issuecomment-3808524934
Copy the bug desc here: **Title: When remote storage keep outage status. the local segment never get deleted** Test Case: ``` Topic enable remote storage: Local retention time: 10 minutes Remote retenton time: 20 minutes Keep run producer to send. and pick one time after 20 minutes to set the AWS S3 permisssion to let the remote upload fail. After 1 hour. you will see the local segments keep increase and save about 1 hours even the both local/remote retention time < 20 minutes. ``` So we need one protect for this case to avoid the local disk keep increase forever util the outage recovered. <img width="748" height="454" alt="image" src="https://github.com/user-attachments/assets/ccd58b4b-badf-4f7c-a2f3-1901675ebac2" /> <img width="922" height="236" alt="image" src="https://github.com/user-attachments/assets/33527316-af37-493b-addf-4f295af50b13" /> <img width="307" height="811" alt="image" src="https://github.com/user-attachments/assets/0259d74a-b892-4736-b060-90102c825bf5" /> -- 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]
