[ 
https://issues.apache.org/jira/browse/USERGRID-1277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15236109#comment-15236109
 ] 

ASF GitHub Bot commented on USERGRID-1277:
------------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/usergrid/pull/499


> Application ID cache should not cache Optionals
> -----------------------------------------------
>
>                 Key: USERGRID-1277
>                 URL: https://issues.apache.org/jira/browse/USERGRID-1277
>             Project: Usergrid
>          Issue Type: Bug
>            Reporter: David Johnson
>            Assignee: David Johnson
>
> The Application ID cache in CpEntityManagerFactoryImpl caches Optional<UUID> 
> even when o.isPresent() is false.  When there is a problem retrieving an 
> application ID from Cassandra and the ID comes back as null, we cache that 
> value and, until the cache entry expires 60 seconds later, the cache returns 
> null for that application and Usergrid throws an NPE, server error 500, etc.
> The cache logic should be simplified and we should cache UUIDs and not 
> Optionals.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to