Uploaded image for project: 'Usergrid (Retired)'
  1. Usergrid (Retired)
  2. USERGRID-1317

Deindexing bug on deleting connections

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.1.0
    • None
    • query-index, Stack
    • 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-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=43609028-6dec-11e6-bb6b-00155d000a54, type='activity'} and version 436f3629-6dec-11e6-bb6b-00155d000a54
      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=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

      {timestamp=136917704454100109}

      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

      Attachments

        Activity

          People

            Unassigned Unassigned
            erenyilmaz Eren Yilmaz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: