Skip to content

[cleanup][broker] Delete unused metrics of zk_write_latency and zk_read_latency - #17505

Merged
Technoboy- merged 2 commits into
apache:masterfrom
pulsar-sigs:cleanup_unuse_zkstats
Oct 17, 2022
Merged

Technoboy- merged 2 commits into
apache:masterfrom
pulsar-sigs:cleanup_unuse_zkstats

Conversation

@liangyuanpeng

@liangyuanpeng liangyuanpeng commented Sep 7, 2022 •

Copy link
Copy Markdown
Contributor

Motivation

clean up unuse metrics of zk_write_latency and zk_read_latency.

passed CI on self repo CI.
pulsar-sigs#2

Modifications

Verifying this change

  • Make sure that the change passes the CI checks.

This change is a trivial rework / code cleanup

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

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (yes / no)
  • The public API: (yes / no)
  • The schema: (yes / no / don't know)
  • The default values of configurations: (yes / no)
  • The wire protocol: (yes / no)
  • The rest endpoints: (yes / no)
  • The admin cli options: (yes / no)
  • Anything that affects deployment: (yes / no / don't know)

Documentation

Need to update docs?

  • doc-required

  • doc-not-needed

  • doc

  • doc-complete

@liangyuanpeng liangyuanpeng changed the title Delete unuse metrics of zk [cleanup][broker] Delete unuse metrics of zk Sep 7, 2022

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

May I ask how can these metrics become unused? Is there any background for this change?

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Sep 7, 2022
@liangyuanpeng

liangyuanpeng commented Sep 7, 2022 •

Copy link
Copy Markdown
Contributor Author

May I ask how can these metrics become unused? Is there any background for this change?

These are legacy code that should be removed after PIP45 Pluggable metadata interface is complete. I think the new metrics is pulsar_storage_write_latency

@liangyuanpeng liangyuanpeng changed the title [cleanup][broker] Delete unuse metrics of zk [cleanup][broker] Delete unuse metrics of zk_write_latency and zk_read_latency Sep 7, 2022

@tisonkun tisonkun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@liangyuanpeng thanks for your explanation! LGTM.

@tisonkun

Copy link
Copy Markdown
Member

@shoothzj @merlimat shall we merge this PR now?

@tisonkun

Copy link
Copy Markdown
Member

@liangyuanpeng I think you may merge the latest master to pass CI.

@liangyuanpeng

Copy link
Copy Markdown
Contributor Author

@tisonkun Thanks for your update and merged master.

This is just a minor code cleanup that can be merged easily and safely. Please someone review and merge,Thanks.

@liangyuanpeng

Copy link
Copy Markdown
Contributor Author

Just random ping someone. Thanks.

@lhotari @hangc0276 @michaeljmarshall

@Technoboy- Technoboy- added this to the 2.12.0 milestone Oct 17, 2022
@Technoboy- Technoboy- added type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use area/broker labels Oct 17, 2022
@Technoboy-
Technoboy- merged commit 4b5de98 into apache:master Oct 17, 2022
@momo-jun momo-jun changed the title [cleanup][broker] Delete unuse metrics of zk_write_latency and zk_read_latency [cleanup][broker] Delete unused metrics of zk_write_latency and zk_read_latency Apr 28, 2023
@Shuimo03

Copy link
Copy Markdown

Hi, I have question, Why is the pulsar_storage_write_latency metric an alternative to zk_write_latency?

@liangyuanpeng
liangyuanpeng deleted the cleanup_unuse_zkstats branch October 9, 2023 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/broker doc-not-needed Your PR changes do not impact docs type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants