[
https://issues.apache.org/jira/browse/USERGRID-1109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Todd Nine updated USERGRID-1109:
--------------------------------
Description:
It is possible for the log repair of an entity to fail after a write has been
committed. We need to update the existing logic to perform the following.
# Load the unique candidate
# We need to ensure that validate the unique property actually matches the
unique property in the entity.
## If it does not, then the unique entry log repair needs to be triggered for
this entity, and the result discarded
This should occur for both entity load as well as Id loading. It might also be
better to remove the getIdField implementation in the
EtnityCollectionManagerImpl, and instead perform validation by loading the
entity, then returning it's id.
> Implement unique property validation read-repair on load
> --------------------------------------------------------
>
> Key: USERGRID-1109
> URL: https://issues.apache.org/jira/browse/USERGRID-1109
> Project: Usergrid
> Issue Type: Story
> Reporter: Todd Nine
>
> It is possible for the log repair of an entity to fail after a write has been
> committed. We need to update the existing logic to perform the following.
> # Load the unique candidate
> # We need to ensure that validate the unique property actually matches the
> unique property in the entity.
> ## If it does not, then the unique entry log repair needs to be triggered
> for this entity, and the result discarded
> This should occur for both entity load as well as Id loading. It might also
> be better to remove the getIdField implementation in the
> EtnityCollectionManagerImpl, and instead perform validation by loading the
> entity, then returning it's id.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)