Skip to content

[fix][compaction] Hide stacktrace if compaction subscription is fenced - #16398

Merged
nicoloboschi merged 1 commit into
apache:masterfrom
nicoloboschi:fix-hide-stacktrace-compaction-sub
Jul 12, 2022
Merged

nicoloboschi merged 1 commit into
apache:masterfrom
nicoloboschi:fix-hide-stacktrace-compaction-sub

Conversation

@nicoloboschi

@nicoloboschi nicoloboschi commented Jul 5, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #14882

Motivation

The subscription __compaction may fail with error Subscription is fenced. if that happens the compaction round will fail for that topic but it will recover on the next one. When this error happens, the stacktrace is printed in the broker logs even if it's not a real error and it will recover automatically.

Modifications

  • Only print exception message to WARN level if subscription is __compaction and the error is SubscriptionFencedException
  • doc-not-needed

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Jul 5, 2022
@nicoloboschi

Copy link
Copy Markdown
Contributor Author

@nicoloboschi nicoloboschi reopened this Jul 12, 2022
@nicoloboschi nicoloboschi added this to the 2.11.0 milestone Jul 12, 2022
@nicoloboschi
nicoloboschi merged commit 768961b into apache:master Jul 12, 2022
@nicoloboschi
nicoloboschi deleted the fix-hide-stacktrace-compaction-sub branch July 12, 2022 20:28
wuxuanqicn pushed a commit to wuxuanqicn/pulsar that referenced this pull request Jul 14, 2022
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Feb 6, 2025
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compaction stop on topic __transaction_buffer_snapshot

2 participants