Skip to content

[Enhancement]Added a metric for geo replication for tracking replicated subscriptions snapshot timeouts#3

Open
nikam14 wants to merge 24 commits intomasterfrom
fix-21793
Open

[Enhancement]Added a metric for geo replication for tracking replicated subscriptions snapshot timeouts#3
nikam14 wants to merge 24 commits intomasterfrom
fix-21793

Conversation

@nikam14
Copy link
Owner

@nikam14 nikam14 commented Mar 22, 2024

Fixes apache#21793

Motivation

Geo replication replicated subscriptions (PIP-33) snapshot creation might time out.
The code contains a debug log message when this happens
When this happens, the subscription state won't be reflected on the remote side and a backlog would build up.
There's no metric to detect this situation.

Modifications

Add a new metric pulsar_replicated_subscriptions_snapshot_timeouts which is a counter (that only resets when the broker restarts).

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:

@nikam14 nikam14 changed the title Update ReplicatedSubscriptionsController.java [Enhancement]Added a metric for geo replication for tracking replicated subscriptions snapshot timeouts Mar 29, 2024
lhotari and others added 22 commits October 7, 2024 18:48
…gerStorage and enable multiple ManagedLedgerFactory instances (apache#23313)
Co-authored-by: Masahiro Sakamoto <massakam@yahoo-corp.jp>
@github-actions github-actions bot added the PIP label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a metric for geo replication for tracking replicated subscriptions snapshot timeouts

8 participants