Skip to content

Conversation

@eyalkoren
Copy link
Contributor

@eyalkoren eyalkoren commented Jun 15, 2021

No description provided.

@eyalkoren
Copy link
Contributor Author

This PR is done in order to demote the Failed to set JMS message property warning message to debug level altogether. However, it was done due to a report from a user that was apparently using an older version, before we already reduce logging level for MessageNotWriteableException in #1715.
So, pending on this user's feedback, we can decide whether this is a required change.
Even if not, we may use it to fix an improper logging done in #1730, where the exception is not treated as a Throwable.

@ghost
Copy link

ghost commented Jun 15, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Branch indexing

  • Start Time: 2021-06-24T15:39:20.118+0000

  • Duration: 54 min 53 sec

  • Commit: ab11d22

Test stats 🧪

Test Results
Failed 0
Passed 2245
Skipped 18
Total 2263

Trends 🧪

Image of Build Times

Image of Tests

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 2245
Skipped 18
Total 2263

Comment on lines +85 to +88
} catch (Exception e) {
if (logger.isDebugEnabled()) {
logger.debug(String.format("Failed to set JMS message property %s. This may indicate a real problem that " +
"can prevent from distributed tracing from working, but it may also be a valid scenario.", headerName), e);
Copy link
Member

Choose a reason for hiding this comment

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

[suggestion] We did not added a test for this case when doing this previous try/catch block with MessageNotWriteableException. It might be worth adding it this time
as it's already the 2cnd time we revisit this code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently we have no indication it is still a problem. Apparently, the user that reported this warning message was using an older version, so the 1.23.0 change to debug may be sufficient.
So I will close this one now and we'll fix that if indeed required.

@eyalkoren eyalkoren closed this Jun 27, 2021
@eyalkoren eyalkoren deleted the jms-quietly-catch-property-write-failures branch June 27, 2021 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants