-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[ Issue 13479 ] Fixed internal topic effect by InactiveTopicPolicy. #13611
Conversation
@codelipenghui @ericsyh @eolivelli @BewareMyPower @Technoboy- PTAL :) Another things: Although this PR can fix the issue #13479, But I have some advice as below:
|
/pulsarbot rerun-failure-checks |
pulsar-broker/src/main/java/org/apache/pulsar/broker/admin/impl/BrokersBase.java
Show resolved
Hide resolved
/pulsarbot rerun-failure-checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/pulsarbot rerun-failure-checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@mattisonchao There are many conflicts with branch-2.8, could you please help push a new PR to fix the problem of branch-2.8? |
Sure, I will fix it ASAP
…On Tue, Jan 18, 2022 at 17:39, lipenghui ***@***.***> wrote:
@mattisonchao <https://github.com/mattisonchao> There are many conflicts
with branch-2.8, could you please help push a new PR to fix the problem of
branch-2.8?
—
Reply to this email directly, view it on GitHub
<#13611 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AR2NWC2IWTN3BMOTERE7HYLUWUYMNANCNFSM5LI4UYFA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
work done. |
…gger compaction. (#14643) ### Motivation When create persistent topic, create compaction subscription(line-1395) is before topic `initialize`(line-1397), it's better to do this after `initialize`: https://github.com/apache/pulsar/blob/ad2cc2d38280b7dd0f056ee981ec8d3b157e3526/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java#L1391-L1398 If we change this part, we can optimize the heartbeat topic not trigger the compaction. #13611 has made the heartbeat topic as a system topic to avoid deleting by GC. However, system topic is compacted by default. But the heartbeat topic sends msg without a key, so trigger compaction is meaningful. So it's better to skip the heartbeat topic to do the compaction. ### Modification - Move `preCreateSubscriptionForCompactionIfNeeded` after `initialize`. - Add heartbeat topic not trigger compaction.
…gger compaction. (#14643) ### Motivation When create persistent topic, create compaction subscription(line-1395) is before topic `initialize`(line-1397), it's better to do this after `initialize`: https://github.com/apache/pulsar/blob/ad2cc2d38280b7dd0f056ee981ec8d3b157e3526/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java#L1391-L1398 If we change this part, we can optimize the heartbeat topic not trigger the compaction. #13611 has made the heartbeat topic as a system topic to avoid deleting by GC. However, system topic is compacted by default. But the heartbeat topic sends msg without a key, so trigger compaction is meaningful. So it's better to skip the heartbeat topic to do the compaction. ### Modification - Move `preCreateSubscriptionForCompactionIfNeeded` after `initialize`. - Add heartbeat topic not trigger compaction. (cherry picked from commit d02bd73)
…gger compaction. (apache#14643) ### Motivation When create persistent topic, create compaction subscription(line-1395) is before topic `initialize`(line-1397), it's better to do this after `initialize`: https://github.com/apache/pulsar/blob/ad2cc2d38280b7dd0f056ee981ec8d3b157e3526/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/BrokerService.java#L1391-L1398 If we change this part, we can optimize the heartbeat topic not trigger the compaction. apache#13611 has made the heartbeat topic as a system topic to avoid deleting by GC. However, system topic is compacted by default. But the heartbeat topic sends msg without a key, so trigger compaction is meaningful. So it's better to skip the heartbeat topic to do the compaction. ### Modification - Move `preCreateSubscriptionForCompactionIfNeeded` after `initialize`. - Add heartbeat topic not trigger compaction.
…pache#13611) (cherry picked from commit 5835191)
Fixes #13479
Master Issue: #13479
Motivation
see #13479
Modifications
healthcheck
internal topic as SystemTopic.Verifying this change
Does this pull request potentially affect one of the following parts:
none.
Documentation
no-need-doc