[fix] StatsOutputStream: add string write function (#308) - #23227
Merged
Conversation
This function was recently changed causing a failure in broker metrics. (cherry picked from commit 751aea3)
lhotari
approved these changes
Aug 26, 2024
lhotari
left a comment
Member
There was a problem hiding this comment.
LGTM. I guess that one possible explanation is plugin code that is compiled without the changes. Anyhow, makes sense to restore binary compatibility.
nit: The implementation could also delegate to the method that takes a CharSequence instead of duplicating the code.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #23227 +/- ##
============================================
+ Coverage 73.57% 74.52% +0.95%
- Complexity 32624 34225 +1601
============================================
Files 1877 1922 +45
Lines 139502 144758 +5256
Branches 15299 15832 +533
============================================
+ Hits 102638 107884 +5246
+ Misses 28908 28608 -300
- Partials 7956 8266 +310
Flags with carried forward coverage won't be shown. Click here to find out more.
|
lhotari
pushed a commit
that referenced
this pull request
Aug 28, 2024
lhotari
pushed a commit
that referenced
this pull request
Aug 28, 2024
grssam
pushed a commit
to grssam/pulsar
that referenced
this pull request
Sep 4, 2024
…he#23227) Co-authored-by: Paul Gier <paul.gier@datastax.com>
hanmz
pushed a commit
to hanmz/pulsar
that referenced
this pull request
Feb 12, 2025
…he#23227) Co-authored-by: Paul Gier <paul.gier@datastax.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
On a specific environment /metrics end point timed out consistently, logs contained the exception below.
Applied fix has resolved the issue.
The fix does not make much sense as String implements CharSequence, so I suspect we hit some weird issue with JIT or jvm.
The JDK is Timurin build 17.0.12+7, I could not repro this locally but it consistently happened in the env.
Modifications
Added method that takes String parameter explicitly.
Such method existed up until the change #22494
Verifying this change
Verified in the env where the problem reproduces
Does this pull request potentially affect one of the following parts:
NO
If the box was checked, please highlight the changes
Documentation
docdoc-requireddoc-not-neededdoc-completeMatching PR in forked repository
PR in forked repository: datastax#308