-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] StatsOutputStream: add string write function (#308) #23227
Conversation
This function was recently changed causing a failure in broker metrics. (cherry picked from commit 751aea3)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
|
…he#23227) Co-authored-by: Paul Gier <paul.gier@datastax.com>
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
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: datastax#308