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

json item fetched from disk does not match what user stored in memcached using set command - white space chars are trimmed when storing the item in disk

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0-beta
    • 2.0-beta
    • couchbase-bucket
    • Security Level: Public
    • None

    Description

      steps to reproduce :

      myvalue = '

      {"age": 100}

      '
      key = "hi

      {0}

      ".format(str(uuid.uuid4())[:4])
      c.set(key,0,0,myvalue)
      c.get(key)

      1. it returns the value WITH white space characters

      >>> c.get(key)
      (0, 4963593311727863, '

      {"age": 100}

      ')

      now eject the item to disk

      >>> c.evict_key(key)
      (3081705891, 0, 'Ejected.')
      >>> c.get(key)
      (0, 4963593311727863, '

      {"age":100}

      ')

      Attachments

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

        Activity

          People

            trond Trond Norbye
            farshid Farshid Ghods (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty