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

Internal error while copying results of a query to an S3 bucket

    XMLWordPrintable

Details

    Description

      Steps to reproduce -

      1. Create a remote capella cluster and create a bucket and load data into it.
      2. Create a 2 node columnar instance.
      3. Create remote and external links.
      4. Create remote and external collections.
      5. Run a copy to s3 query such that it copies result of a query that utilizes 2 collections.

      2024-07-23 14:38:51,982 | infra | DEBUG   | cbas_worker_5 | [Rest_Connection:_urllib_request:284] POST https://cb.auuaxppxxwlvwpp.sandbox.nonprod-project-avengers.com:18095/analytics/service body: {"statement": "COPY ( select * from Default.Default.YsGI1SpfMrJDfUiu as a, Default.Default.SJACSvLYSsfirBwP8pXdU as b where a.avg_rating > 0.4 and b.avg_rating > 0.4 ) AS ally TO `copy-to-s3-14465` AT FyCresRdNwjH PATH(\"copy_dataset_8\") ", "pretty": "true", "client_context_id": null, "timeout": "3600s"} headers: {'Content-Type': 'application/json', 'Authorization': 'Basic Y291Y2hiYXNlLWNsb3VkLXFlOjdYWUBtelZPSUlHdTg2NDlEQzF4TFpIdWEhdVk5anhkSTVJeHRVV1VKTWltM0lYSE4jd0NsS29DU21QNCVnUGc=', 'Connection': 'close', 'Accept': '*/*'} error: 500 reason: [{'code': 25000, 'msg': 'Internal error'}] {
          "requestID": "b7ad7f70-224d-4e04-917c-97b7ea24c56f",
          "clientContextID": "null",
          "errors": [{ 
              "code": 25000,        "msg": "Internal error"    } 
          ],
          "status": "fatal",
          "metrics": {
              "elapsedTime": "1420.466715985s",
              "executionTime": "1420.464883701s",
              "compileTime": "0ns",
              "queueWaitTime": "0ns",
              "resultCount": 0,
              "resultSize": 0,
              "processedObjects": 0,
              "bufferCacheHitRatio": "0.00%",
              "bufferCachePageReadCount": 0,
              "errorCount": 1
          }
      } 

      Analytics collections used in the query above were created as follows -

      CREATE EXTERNAL DATASET Default.Default.YsGI1SpfMrJDfUiu ON `columnar-functional-sanity-test-data` AT FyCresRdNwjH WITH {"format": "json", "include": ["*.json"]};

      CREATE COLLECTION Default.Default.SJACSvLYSsfirBwP8pXdU PRIMARY KEY(name: string, email: string) with {"storage-format": {"format": "column"}} ; 
      

       

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-62859
          # Subject Branch Project Status CR V

          Activity

            People

              abhay.aggrawal Abhay Aggrawal
              umang.agrawal Umang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty