pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

[Bug] Major compaction is not recovered automatically after the disk is writable again

Open isminex opened this issue 1 year ago • 0 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Read release policy

  • [X] I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

v2.11.2

Minimal reproduce step

  1. Major compaction task is suspended because the disk is almost full. image

  2. Minor compaction task is also suspended because the disk is full-filled. image

  3. Disk becomes writable again. image

Problem1: Only fulfilledDirs will be recovered. If the disks(dirs) are just almost full(not full-filled), there is no change their major compaction or minor compaction task can be recovered. image

Problem2: Because the disk's usage is still not under warn threshold (0.9) when they are writable, only minor compaction task can be recovered and then the disks(dirs) are removed from fulfilledDirs, So there is no change their major compaction task can be recovered because of Problem1. image

  1. Finally, the major compaction task can not be recovered even the disk is idle. image

What did you expect to see?

Major compaction is recoveryed automatically when the dist is idle again.

What did you see instead?

Major compaction cannot be recoveryed automatically when the dist is idle again.

Anything else?

No response

Are you willing to submit a PR?

  • [ ] I'm willing to submit a PR!

isminex avatar Jun 13 '24 11:06 isminex