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

NullReference exception in TreeCache #371

Closed
tusmester opened this Issue May 24, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@tusmester
Copy link
Member

tusmester commented May 24, 2018

In some cases (under a heavy load, when workspaces are created in parallel and the settings cache gets invalidated many times) a nullreference exception is thrown in the TreeCache class (link-to-line), when accessing the singleton Instance.

Possible cause

The internal variable may become null because the invalidation in the InvalidatePrivate method happens outside of a lock block.

Solution options

  1. simplify the code using a Lazy variable (preferred)
  2. or lock the invalidation too

Acceptance

  • backport to SN6 and notify the CF team

@kavics kavics added this to the Sprint 159 milestone May 29, 2018

@kavics kavics self-assigned this May 29, 2018

@kultsar kultsar closed this May 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment