Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-251

get_any_replica returns corrupted response

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.0-dp.1
    • 1.0.0-beta.3
    • None
    • None
    • 1
    • SDK43

    Description

      I am seeing the following value for the beer-sample bucket's 21st_amendment_brewery_cafe after a get_any_replica read. See below comment for sample cpp program. Have also attached output log (cxxcbc_251_sample_program_log.txt).

      \x9a\U00000005\xf0\xb1{\"name\":\"21st Amendment Brewery Cafe\",\"city\":\"San Francisco\",\"state\":\"California\",\"code\":\"94107\",\"country\":\"United States\",\"phone\":\"1-415-369-0900\",\"website\":\"http://www.21st-ame\t\xa1(.com/\",\"typ\U00000001\xbe
      

      Expected value:

      {
        "name": "21st Amendment Brewery Cafe",
        "city": "San Francisco",
        "state": "California",
        "code": "94107",
        "country": "United States",
        "phone": "1-415-369-0900",
        "website": "http://www.21st-amendment.com/",
        "type": "brewery",
        "updated": "2010-10-24 13:54:07",
        "description": "The 21st Amendment Brewery offers a variety of award winning house made brews and American grilled cuisine in a comfortable loft like setting. Join us before and after Giants baseball games in our outdoor beer garden. A great location for functions and parties in our semi-private Brewers Loft. See you soon at the 21A!",
        "address": [
          "563 Second Street"
        ],
        "geo": {
          "accuracy": "ROOFTOP",
          "lat": 37.7825,
          "lon": -122.393
        }
      }
      

      Repro Steps:

      1. Setup a 2 node cluster
      2. Determine which node has the active doc for a key in the beer-sample bucket (chose 21st_amendment_brewery_cafe for my testing)
      3. Start looping program
      4. Stop the node w/ the active doc
      5. On failure the program will attempt to get the replica and that is when it fails to parse the JSON (probably b/c the response is incorrect JSON )

      Attachments

        Issue Links

          For Gerrit Dashboard: CXXCBC-251
          # Subject Branch Project Status CR V

          Activity

            People

              avsej Sergey Avseyev
              jared.casey Jared Casey
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes