You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Jeffrey (JIRA)" <ji...@apache.org> on 2015/11/02 17:25:28 UTC
[jira] [Updated] (USERGRID-1077) Create a repair task in usergrid
to handle instances of multiple INDEXES when they are detected
[ https://issues.apache.org/jira/browse/USERGRID-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeffrey updated USERGRID-1077:
-------------------------------
Sprint: Usergrid 33 (was: Usergrid 32)
> Create a repair task in usergrid to handle instances of multiple INDEXES when they are detected
> -----------------------------------------------------------------------------------------------
>
> Key: USERGRID-1077
> URL: https://issues.apache.org/jira/browse/USERGRID-1077
> Project: Usergrid
> Issue Type: Story
> Reporter: George Reyes
> Assignee: George Reyes
> Fix For: 1.0.3
>
>
> Things that need to be addressed when they are found.
> EntityManagerImpl.java line 1135
> if ( properties == null ) {
> logger.error( "Error deserializing entity with key {} entity probaby doesn't exist, where did this key come from?", key );
> continue;
> }
> UUID id = uuid( properties.get( PROPERTY_UUID ) );
> String type = string( properties.get( PROPERTY_TYPE ) );
> if ( ( id == null ) || ( type == null ) ) {
> logger.error( "Error retrieving entity with key {}, no type or id deseriazable, where did this key come from?", key );
> continue;
> }
> Then in EntityManagerImpl getUUIDsForUniqueProperty
> //shouldn't happen, but it's an error case
> if ( cols.size() > 1 ) {
> logger.error( "INDEX CORRUPTION: More than 1 unique value exists for entities in ownerId {} of type {} on "
> + "property {} with value {}",
> new Object[] { ownerEntityId, collectionNameInternal, propertyName, propertyValue } );
> }
> ^ Need to address both issues on read repair path such that we no longer need to worry about users seeing them.
> For the second issue we should be able to just call delete UniqueProperty with the entity unique value in question. Just make this happen in the backend.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)