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

Include exception when no server is found #14709

Merged
merged 1 commit into from
Dec 23, 2024

Conversation

gortiz
Copy link
Contributor

@gortiz gortiz commented Dec 23, 2024

Recently we found an issue when the log No server found for request was printed. This log implies there is an exception that don't let us find servers to query, but the exception is not printed.

This PR modifies the log to include a the first exception found. In case more than exception is affecting the system, we only log the first one, but we include the total number of exceptions in the log.

@gortiz gortiz requested a review from yashmayya December 23, 2024 12:14
@codecov-commenter
Copy link

codecov-commenter commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 64.03%. Comparing base (59551e4) to head (50935d2).
Report is 1500 commits behind head on master.

Files with missing lines Patch % Lines
...sthandler/BaseSingleStageBrokerRequestHandler.java 0.00% 4 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #14709      +/-   ##
============================================
+ Coverage     61.75%   64.03%   +2.28%     
- Complexity      207     1606    +1399     
============================================
  Files          2436     2706     +270     
  Lines        133233   149220   +15987     
  Branches      20636    22875    +2239     
============================================
+ Hits          82274    95549   +13275     
- Misses        44911    46664    +1753     
- Partials       6048     7007     +959     
Flag Coverage Δ
custom-integration1 100.00% <ø> (+99.99%) ⬆️
integration 100.00% <ø> (+99.99%) ⬆️
integration1 100.00% <ø> (+99.99%) ⬆️
integration2 0.00% <ø> (ø)
java-11 64.01% <0.00%> (+2.30%) ⬆️
java-21 63.87% <0.00%> (+2.25%) ⬆️
skip-bytebuffers-false 64.03% <0.00%> (+2.28%) ⬆️
skip-bytebuffers-true 56.13% <ø> (+28.40%) ⬆️
temurin 64.03% <0.00%> (+2.28%) ⬆️
unittests 64.02% <0.00%> (+2.28%) ⬆️
unittests1 56.34% <ø> (+9.45%) ⬆️
unittests2 34.44% <0.00%> (+6.71%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gortiz gortiz merged commit 9be162a into apache:master Dec 23, 2024
19 of 21 checks passed
@gortiz gortiz deleted the log-exception-when-no-server-found branch December 23, 2024 13:20
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.

3 participants