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

OAK-9654 : more logging for a RuntimeException #449

Merged
merged 6 commits into from Jan 6, 2022

Conversation

stefan-egli
Copy link
Contributor

Plus an almost forgotten minor cleanup on /Jenkinsfile

Comment on lines 155 to 157
LoggerFactory.getLogger(getClass()).error("resolve: RuntimeException with " +
changeRevision + " - " + value, re);
throw re;
Copy link
Contributor

Choose a reason for hiding this comment

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

How about turning this into a warn message and not re-throw the exception? I understand the issue is probably with Guava because both key and value are non-null. Guavas LocalCache.put() even checks this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, it probably doesn't matter if that put fails - so a rethrow isnt strictly necessary.
Changed that now here

Copy link
Contributor

@mreutegg mreutegg left a comment

Choose a reason for hiding this comment

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

Looks good now. Can you please update the JIRA issue summary to better reflect the change?

@stefan-egli
Copy link
Contributor Author

thx. yes, jira ticket is updated now.

@stefan-egli stefan-egli merged commit c58be41 into apache:trunk Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants