[
https://issues.apache.org/jira/browse/USERGRID-1207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Russo updated USERGRID-1207:
------------------------------------
Sprint: Usergrid 37
> Notification statistics are not accurate
> ----------------------------------------
>
> Key: USERGRID-1207
> URL: https://issues.apache.org/jira/browse/USERGRID-1207
> Project: Usergrid
> Issue Type: Story
> Reporter: Michael Russo
> Assignee: Michael Russo
>
> In org.apache.usergrid.services.notifications.TaskManager, the task updates
> an entity, but in a multi-threaded environment, this can lead to
> inconsitiencies due to the way it's implemented with getting an entity,
> incrementing the stats at this point in time, and then writing it back.
> If 2 threads do this at nearly the same time, they both could be incrementing
> from the same base entity data and each overwrite with a single increment
> rather than the value being incremented on the latest update to date changes.
> Need to make this thread safe or see about using counters for these type of
> statistics.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)