Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-59709

Map collections statements can run out of order when order is significant

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown
    • Analytics Sprint 31

    Description

      The mapCollections() function was updated in 7.2.0 timeframe to create scopes & disconnect local links while mapping collections, to avoid the connect / disconnect performance hit when mapping a large number of collections.

      Observed while working on MB-59707, these requests can arrive out-of-order, which breaks things- this can result in a failure to disconnect the link before mapping collections in those scopes.

      e.g.

      n_0:2023-11-17T18:59:44.932-05:00 INFO CBAS.messaging.CCMessageBroker [Executor-20:ClusterController] Received message: ExecuteStatementRequestMessage(id=28, from=19242a2ce0fe6111c405cfce2b5bd88a, uuid=48cd80ff-9c36-4d4f-9b9a-be397f2ba274): <ud>disconnect link `travel-sample`.`tenant_agent_04`.Local;</ud>
      n_0:2023-11-17T18:59:44.933-05:00 INFO CBAS.messaging.CCMessageBroker [Executor-14:ClusterController] Received message: ExecuteStatementRequestMessage(id=29, from=19242a2ce0fe6111c405cfce2b5bd88a, uuid=4bdbd985-816c-4d33-a40b-c83d1703f75e): <ud>create analytics scope `travel-sample`.`tenant_agent_04` if not exists;</ud>
      n_0:2023-11-17T18:59:44.934-05:00 WARN CBAS.apache.asterix [Executor-20:ClusterController] ASX1063: Cannot find dataverse with name `travel-sample`.tenant_agent_04 (in line 1, at column 1)
      n_0:org.apache.asterix.common.exceptions.CompilationException: ASX1063: Cannot find dataverse with name `travel-sample`.tenant_agent_04 (in line 1, at column 1)
      

      Attachments

        Activity

          People

            abhay.aggrawal Abhay Aggrawal
            michael.blow Michael Blow
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty