Skip to content

KAFKA-19952: When remote storage keep outage status. the local segment never get deleted#21049

Closed
jiafu1115 wants to merge 1 commit intoapache:trunkfrom
jiafu1115:protectedStorage
Closed

KAFKA-19952: When remote storage keep outage status. the local segment never get deleted#21049
jiafu1115 wants to merge 1 commit intoapache:trunkfrom
jiafu1115:protectedStorage

Conversation

@jiafu1115
Copy link
Contributor

@jiafu1115 jiafu1115 commented Dec 2, 2025

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.

image image image

@github-actions github-actions bot added triage PRs from the community storage Pull requests that target the storage module small Small PRs labels Dec 2, 2025
…t never get deleted

Signed-off-by: jiafu1115 <fujian1115@gmail.com>
@jiafu1115 jiafu1115 changed the title KAFKA-19952: When remote storage keep outage status. the local segement never get deleted KAFKA-19952: When remote storage keep outage status. the local segment never get deleted Dec 2, 2025
@jiafu1115 jiafu1115 marked this pull request as ready for review December 2, 2025 13:25
@github-actions
Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

@jiafu1115
Copy link
Contributor Author

close this PR due to I think new solution #21361 may be better one which can also solve some other issues. cc @kamalcph

@jiafu1115 jiafu1115 closed this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-attention small Small PRs storage Pull requests that target the storage module triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant