Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.1.0
-
None
-
Important
Description
When deleting a connection, all other connections are deindexed, according to the log. After this, query on the connection does not work.
Here is a sample log (we only deleted the connection with the entity id 49690f32-6dec-11e6-9d67-00155d000a53 ):
2016-08-29 17:28:23,814 DEBUG (Usergrid-SQS-Pool-2) [org.apache.usergrid.persistence.index.impl.EsEntityIndexBatchImpl] - Deindexing to indexes [usergrid-cluster_applications_3] with scope ApplicationScopeImpl{application=SimpleId{uuid=067068e5-6de4-11e6-bd42-00155d000a51, type='application'}} on edge IndexEdgeImpl
{timestamp=136917704454100109} SearchEdgeImpl{nodeId=SimpleId{uuid=d63eb134-6de5-11e6-bd42-00155d000a51, type='user'}, name='zzzconnzzz|saves', nodeType=TARGET} with id SimpleId{uuid=3709fea9-6dec-11e6-9d67-00155d000a53, type='activity'} and version 371b3cba-6dec-11e6-9d67-00155d000a532016-08-29 17:28:23,814 DEBUG (Usergrid-SQS-Pool-2) [org.apache.usergrid.persistence.index.impl.EsEntityIndexBatchImpl] - Deindexing to indexes [usergrid-cluster_applications_3] with scope ApplicationScopeImpl{application=SimpleId{uuid=067068e5-6de4-11e6-bd42-00155d000a51, type='application'}} on edge IndexEdgeImpl{timestamp=136917704454100109}
SearchEdgeImpl{nodeId=SimpleId
{uuid=d63eb134-6de5-11e6-bd42-00155d000a51, type='user'}, name='zzzconnzzz|saves', nodeType=TARGET} with id SimpleId{uuid=43609028-6dec-11e6-bb6b-00155d000a54, type='activity'} and version 436f3629-6dec-11e6-bb6b-00155d000a542016-08-29 17:28:23,814 DEBUG (Usergrid-SQS-Pool-2) [org.apache.usergrid.persistence.index.impl.EsEntityIndexBatchImpl] - Deindexing to indexes [usergrid-cluster_applications_3] with scope ApplicationScopeImpl{application=SimpleId{uuid=067068e5-6de4-11e6-bd42-00155d000a51, type='application'}} on edge IndexEdgeImpl{timestamp=136917704454100109} SearchEdgeImpl{nodeId=SimpleId{uuid=d63eb134-6de5-11e6-bd42-00155d000a51, type='user'}
, name='zzzconnzzz|saves', nodeType=TARGET} with id SimpleId
{uuid=49690f32-6dec-11e6-9d67-00155d000a53, type='activity'} and version 4969d283-6dec-11e6-9d67-00155d000a53
2016-08-29 17:28:23,815 DEBUG (Usergrid-SQS-Pool-2) [org.apache.usergrid.persistence.index.impl.EsEntityIndexBatchImpl] - Deindexing to indexes [usergrid-cluster_applications_3] with scope ApplicationScopeImpl{application=SimpleId{uuid=067068e5-6de4-11e6-bd42-00155d000a51, type='application'}} on edge IndexEdgeImpl
SearchEdgeImpl{nodeId=SimpleId
{uuid=d63eb134-6de5-11e6-bd42-00155d000a51, type='user'}, name='zzzconnzzz|saves', nodeType=TARGET} with id SimpleId
{uuid=b6cd1535-6df4-11e6-a307-00155d000a51, type='activity'}and version b6ecab26-6df4-11e6-a307-00155d000a51
How to reproduce:
1- Create connections on a collection
2- Query on connections - all should be gotten
3- Delete one connection
4- Run the same query on connections - none is gotten