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

Cbbackupmgr: udf count name should be consistent with other elements in cbbackupmgr info

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 7.0.1
    • 7.0.2
    • tools
    • Triaged
    • 1
    • Unknown

    Description

      cbbackupmgr info returns query_udfs for count vs other component return fts_count, index_count, etc. For consistency it would be nice to be something like udfs_count.

      # ./cbbackupmgr info -a /backup-1 -r my_backup -j
      {"name":"my_backup","size":176729720,"count":1,"backups":[{"date":"2021-08-03T06_02_04.76482713-07_00","type":"FULL","source":"http://172.23.104.92:8091","events":0,"fts_alias":0,"analytics_count":0,"query_udfs":1,"size":176729720,"buckets":[{"name":"default","size":176724234,"items":2016,"mutations":2016,"tombstones":0,"views_count":0,"fts_count":0,"index_count":1,"analytics_count":0,"query_udfs":0},{"name":"bucket1","size":2432,"items":0,"mutations":0,"tombstones":0,"views_count":0,"fts_count":0,"index_count":1,"analytics_count":0,"query_udfs":1,"scopes":{"0":{"uid":0,"name":"_default","mutations":0,"tombstones":0,"collections":{"0":{"id":0,"name":"_default","mutations":0,"tombstones":0}}},"8":{"uid":8,"name":"scope1","mutations":0,"tombstones":0,"collections":{"8":{"id":8,"name":"collection1","mutations":0,"tombstones":0}}}}},{"name":"bucket2","size":2732,"items":0,"mutations":0,"tombstones":0,"views_count":0,"fts_count":0,"index_count":1,"analytics_count":0,"query_udfs":2,"scopes":{"0":{"uid":0,"name":"_default","mutations":0,"tombstones":0,"collections":{"0":{"id":0,"name":"_default","mutations":0,"tombstones":0}}},"8":{"uid":8,"name":"scope2a","mutations":0,"tombstones":0,"collections":{"8":{"id":8,"name":"collection2a","mutations":0,"tombstones":0}}},"9":{"uid":9,"name":"scope2b","mutations":0,"tombstones":0,"collections":{"9":{"id":9,"name":"collection2b","mutations":0,"tombstones":0}}}}}],"complete":true,"source_cluster_uuid":"93542288879afbc4f36c6a530b1e60eb"}]} 

       

      Also could the count for the scope-level udf be under the "scopes" element vs "buckets"?

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          The reason why query_udf was used was because there are analytic UDFs and we wanted to be explicate.

          Also could the count for the scope-level udf be under the "scopes" element vs "buckets"?

          That information is provided at the bucket level. cbbackupmgr currently does not know what parts of the payloads are at what level. For example GSI is at the collection level but are displayed at the bucket level. This is something we might improve in the future.

          pvarley Patrick Varley added a comment - The reason why query_udf was used was because there are analytic UDFs and we wanted to be explicate. Also could the count for the scope-level udf be under the "scopes" element vs "buckets"? That information is provided at the bucket level. cbbackupmgr currently does not know what parts of the payloads are at what level. For example GSI is at the collection level but are displayed at the bucket level. This is something we might improve in the future.

          People

            pvarley Patrick Varley
            pierre.regazzoni Pierre Regazzoni
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty