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

CID 160919: Concurrent data access violations (GUARDED_BY_VIOLATION) #280

Open
jewzaam opened this issue Jan 26, 2017 · 0 comments
Open

Comments

@jewzaam
Copy link
Member

jewzaam commented Jan 26, 2017

*** CID 160919: Concurrent data access violations (GUARDED_BY_VIOLATION)
/lightblue-rest/common/src/main/java/com/redhat/lightblue/rest/RestConfiguration.java: 70 in com.redhat.lightblue.rest.RestConfiguration.getSavedSearchCache()()

64
65         public static DataSourcesConfiguration getDatasources() {
66             return datasources;
67         }
68
69         public static SavedSearchCache getSavedSearchCache() {
>>>     CID 160919:  Concurrent data access violations  (GUARDED_BY_VIOLATION)
>>>     Accessing "com.redhat.lightblue.rest.RestConfiguration.savedSearchCache" without holding lock "RestConfiguration.class". Elsewhere, "com.redhat.lightblue.rest.RestConfiguration.savedSearchCache" is accessed with "RestConfiguration.class" held 3 out of 4 times.
70             SavedSearchCache c=savedSearchCache;
71             if(c==null) {
72                 synchronized(RestConfiguration.class) {
73                     if(savedSearchCache==null) {
74                         try {
75                             savedSearchCache=new SavedSearchCache(getFactory().getCrudConfiguration().getSavedSearch());
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

No branches or pull requests

1 participant