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

couch_dbdump outputs hex values with --json flag

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 7.1.0
    • 7.1.0
    • couchbase-bucket
    • None
    • Untriaged
    • 1
    • Unknown
    • KV 2021-Dec

    Description

      What is the issue?
      Currently, couch_dbdump outputs invalid JSON documents for travel-sample dataset because the values of the "content_meta" key that many documents in this dataset have are outputted as raw hex values (0x..), which is not valid JSON.

      Example document:

      b'{"seq":56,"id":"(collection:0x12)airport_3432","rev":1,"content_meta":0x80,"physical_size":201,"cas":"1637953938963628032","expiry":0,"flags":0,"datatype":1,"datatype_as_text":["json"],"size":206,"snappy":true,"display":"inflated","body":"{\\"id\\":3432,\\"type\\":\\"airport\\",\\"airportname\\":\\"Oscoda Wurtsmith\\",\\"city\\":\\"Oscoda\\",\\"country\\":\\"United States\\",\\"faa\\":\\"OSC\\",\\"icao\\":\\"KOSC\\",\\"tz\\":\\"America/New_York\\",\\"geo\\":{\\"lat\\":44.451558,\\"lon\\":-83.394053,\\"alt\\":634.0}}"}' 

      Attachments

        Issue Links

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

          Activity

            People

              maks.januska Maksimiljans Januska
              maks.januska Maksimiljans Januska
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty