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

CBQ shell redirect output overwritten when using multiple source files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 6.0.4, 6.5.1, 7.0.0
    • 5.5.5
    • query
    • None
    • Untriaged
    • Unknown

    Description

      After specifying an output file with "\REDIRECT" and then providing two separate source files with "\SOURCE", only the last files queries are logged in the output file.

      Steps to recreate : 

      1. Create a cluster with query and the travel-sample bucket.
      2. Create two files, q1.n1ql and q2.n1ql (attached below)
      3. In cbq, redirect the output to a file with \REDIRECT <filename>
      4. Use \SOURCE q1.n1ql; 
      5. Use \SOURCE q2.n1ql;

      After this, the redirected file contains only the output of q2.n1ql as opposed to both sets of queries from both the files.

      Attachments

        1. q1.n1ql
          0.0 kB
        2. q2.n1ql
          0.2 kB

        Issue Links

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

          Activity

            People

              ajay.bhullar Ajay Bhullar
              thomas.dotters Thomas Dotters
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty