Skip to content
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

[fix][broker] Record GeoPersistentReplicator.msgOut before producer#sendAsync #21673

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

nodece
Copy link
Member

@nodece nodece commented Dec 6, 2023

Motivation

GeoPersistentReplicator.msgOut metric records the message output data from the local cluster to the remote cluster. Right now, this metric has been updated before getting the shema. If it fails, we don't send the message to the remote cluster, so I don't think the metric should be updated.

GeoPersistentReplicator.msgOut should be recorded before producer#sendAsync.

Modifications

Move msgOut.recordEvent(headersAndPayload.readableBytes()); before producer#sendAync.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

…endAsync

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
@github-actions github-actions bot added the doc-not-needed Your PR changes do not impact docs label Dec 6, 2023
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

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

Thank you!

@tisonkun
Copy link
Member

tisonkun commented Dec 6, 2023

/pulsarbot rerun-failure-checks

@nodece
Copy link
Member Author

nodece commented Dec 6, 2023

/pulsarbot rerun-failure-checks

@Technoboy- Technoboy- merged commit 61098ee into apache:master Dec 8, 2023
55 of 56 checks passed
Technoboy- pushed a commit that referenced this pull request Dec 8, 2023
…endAsync (#21673)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Technoboy- pushed a commit that referenced this pull request Dec 14, 2023
…endAsync (#21673)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
nikhil-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 20, 2023
…endAsync (apache#21673)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
srinath-ctds pushed a commit to datastax/pulsar that referenced this pull request Dec 20, 2023
…endAsync (apache#21673)

Signed-off-by: Zixuan Liu <nodeces@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants