Removed suspicious getClass() call on Class#15367
Removed suspicious getClass() call on Class#15367dk2k wants to merge 1 commit intoopensearch-project:mainfrom
Conversation
Signed-off-by: Dmitry Kryukov <dk2k@ya.ru>
|
❌ Gradle check result for 34d23d1: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
|
Is there a test covering this path? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15367 +/- ##
============================================
- Coverage 71.93% 71.84% -0.09%
+ Complexity 63223 63209 -14
============================================
Files 5214 5214
Lines 295938 295938
Branches 42754 42754
============================================
- Hits 212876 212627 -249
- Misses 65601 65880 +279
+ Partials 17461 17431 -30 ☔ View full report in Codecov by Sentry. |
dbwiddis
left a comment
There was a problem hiding this comment.
Why is this suspicious?
The intention here is to display the fully qualified class name. Printing the instance toString() may expose object internals to an exception handling path.
|
@dbwiddis output: Which of the lines from this output do you expect to see as part of exception's message? |
|
The log entry says "streamable custom class XYZ already registered", we expect to see XYZ |
Removed suspicious getClass() call on Class