apache / apache/bookkeeper

Journal retains some backups that have expired for a long time

Open
#3,708 0 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
Java
Stars
2k
Forks
976
Avg merge
6d 15h
Merged PRs (30d)
7

Description

**BUG REPORT**

***Describe the bug***

1. We have a bookie work environment, which is deployed with other services mixed together.
2. Machine disk space allocation is relatively tight.
3. Bookie is not always in traffic mode, sometimes it has short traffic write peaks, sometimes it is always idle.
4. We hope that when the traffic peaks, a few more journal file backups can help us restore the bookie in abnormal situations, but we also hope that when the traffic is low, we can clean up the journal files that have been backed up for a long time.

As shown in the figure below, the oldest journal file is already on June 23, 2022, and now it is December 20, and during this period, our bookie has been running, and these journals have existed for a long time along with the backup strategy.

![image](https://user-images.githubusercontent.com/35599757/208644937-a5338435-675f-401b-a700-e9fe08b73468.png)

We can add a retention mechanism about time to help us guarantee the requirement of point 4.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.