Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[improve][broker] Heartbeat topic enable checkMessageExpire #20832

Conversation

TakaHiR07
Copy link
Contributor

Motivation

Running pulsar cluster for a long time, we found there are thousands of ledgers of heartbeat topic. The reason is heartbeat topic do not clean the expired message because it is systemTopic. The behaviour change since this pr #13611.

I think it is no need to keep heartbeat topic message permanently and we'd better clean the expired message and the ledger.

Modifications

modify checkMessageExpire()

Verifying this change

  • Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@Technoboy-
Copy link
Contributor

The fix is good, Could you add a test?

@TakaHiR07
Copy link
Contributor Author

The fix is good, Could you add a test?

Test is done. @Technoboy-

@Technoboy- Technoboy- modified the milestones: 3.1.0, 3.2.0 Jul 31, 2023
Copy link
Member

@nodece nodece left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nodece
Copy link
Member

nodece commented Aug 7, 2023

/pulsarbot rerun-failure-checks

@github-actions
Copy link

github-actions bot commented Sep 7, 2023

The pr had no activity for 30 days, mark with Stale label.

@github-actions github-actions bot added the Stale label Sep 7, 2023
@Technoboy- Technoboy- force-pushed the improve_heartbeat_topic_enable_message_expire branch from 03e289b to 12b5119 Compare September 19, 2023 07:06
@TakaHiR07
Copy link
Contributor Author

Actually in our pulsar environment, compaction is trigger, thats the reason why ledger not clean.

With this pr, #14643. Heartbeat topic no longer trigger compaction. This problem can be fix.

So close this pr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs ready-to-test Stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants