Skip to content

Conversation

@zhiheng123
Copy link
Contributor

@zhiheng123 zhiheng123 commented May 28, 2024

  • Make tests fail

  • Fix ThreadRegistry#register to ensure correct Prom metrics

  • Change style to match BK standards

  • Fix tests


Co-authored-by: Nicolò Boschi boschi1997@gmail.com


(cherry picked from commit 1d82b92) Conflicts:
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieImpl.java
bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/SyncThread.java

Descriptions of the changes in this PR:

Fix #xyz

Main Issue: #xyz

BP: #xyz

Motivation

(Explain: why you're making that change, what is the problem you're trying to solve)

Changes

(Describe: what changes you have made)


In order to uphold a high standard for quality for code contributions, Apache BookKeeper runs various precommit
checks for pull requests. A pull request can only be merged when it passes precommit checks.


Be sure to do all the following to help us incorporate your contribution
quickly and easily:

If this PR is a BookKeeper Proposal (BP):

  • Make sure the PR title is formatted like:
    <BP-#>: Description of bookkeeper proposal
    e.g. BP-1: 64 bits ledger is support
  • Attach the master issue link in the description of this PR.
  • Attach the google doc link if the BP is written in Google Doc.

Otherwise:

  • Make sure the PR title is formatted like:
    <Issue #>: Description of pull request
    e.g. Issue 123: Description ...
  • Make sure tests pass via mvn clean apache-rat:check install spotbugs:check.
  • Replace <Issue #> in the title with the actual Issue number.

…pache#4300)

* Make tests fail

* Fix ThreadRegistry#register to ensure correct Prom metrics

* Change style to match BK standards

* Fix tests

---------

Co-authored-by: Nicolò Boschi <boschi1997@gmail.com>

---------

(cherry picked from commit 1d82b92)
Conflicts:
  bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/BookieImpl.java
  bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/SyncThread.java
@hezhangjian hezhangjian changed the title Fix ThreadRegistry#register behavior to ensure correct Prom metrics … Fix ThreadRegistry#register behavior to ensure correct Prom metrics #4300 May 28, 2024
@hezhangjian hezhangjian marked this pull request as ready for review May 28, 2024 06:15
@hezhangjian hezhangjian merged commit 3f2b88b into apache:branch-4.16 May 28, 2024
@hezhangjian hezhangjian changed the title Fix ThreadRegistry#register behavior to ensure correct Prom metrics #4300 [branch-4.16] Fix ThreadRegistry#register behavior to ensure correct Prom metrics #4300 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants