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

JENKINS-48716 Prevent Guava InvalidCacheLoadException #136

Merged
merged 3 commits into from
Dec 27, 2017

Conversation

gmshake
Copy link
Contributor

@gmshake gmshake commented Dec 27, 2017

Issue link JENKINS-48716

@coveralls
Copy link

Coverage Status

Coverage remained the same at 49.661% when pulling 135687c on gmshake:JENKINS-48716 into 678f540 on jenkinsci:master.

@artkoshelev
Copy link
Member

could you please provide test reproducing the problem?

@gmshake
Copy link
Contributor Author

gmshake commented Dec 27, 2017

@artkoshelev Do you mean test steps or unit test? There're logs on our production instance like this, and I've made up local build environment and reproduced the problem.
Dec 25, 2017 5:45:29 PM WARNING hudson.model.listeners.RunListener report RunListener failed com.google.common.cache.CacheLoader$InvalidCacheLoadException: CacheLoader returned null for key PR-178. at com.google.common.cache.LocalCache$Segment.getAndRecordStats(LocalCache.java:2383) at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2351) at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2313) at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2228) at com.google.common.cache.LocalCache.get(LocalCache.java:3965) at com.google.common.cache.LocalCache$LocalManualCache.get(LocalCache.java:4764) at hudson.plugins.jira.JiraSite.getIssue(JiraSite.java:467) at hudson.plugins.jira.JiraJobAction.setAction(JiraJobAction.java:99) at hudson.plugins.jira.JiraJobAction$RunListenerImpl.onStarted(JiraJobAction.java:130) at hudson.plugins.jira.JiraJobAction$RunListenerImpl.onStarted(JiraJobAction.java:122) at hudson.model.listeners.RunListener.fireStarted(RunListener.java:240) at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:254) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:421)

@artkoshelev
Copy link
Member

@gmshake i mean unit or integration test, so we can validate that your change actually fixes problem and document this new behavior

@gmshake
Copy link
Contributor Author

gmshake commented Dec 27, 2017

@artkoshelev Tests added.

@coveralls
Copy link

Coverage Status

Coverage increased (+1.7%) to 51.406% when pulling d341a2e on gmshake:JENKINS-48716 into 678f540 on jenkinsci:master.

@rantoniuk rantoniuk merged commit a1909b0 into jenkinsci:master Dec 27, 2017
@rantoniuk
Copy link
Contributor

Nice one! 🍺 for this one and for passing 50% coverage :-)

@gmshake
Copy link
Contributor Author

gmshake commented Dec 28, 2017

@warden :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants