Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-133

HTTP Request hangs during failover

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2.0.1
    • 2.0.0
    • None
    • Security Level: Public
    • None

    Description

      lcb_wait hangs..

      Code:

      lcb_http_request_t htreq;
      lcb_error_t lcb_err;
      lcb_err = lcb_make_http_request(handle->getLcb(),
      this,
      LCB_HTTP_TYPE_VIEW,
      htcmd,
      &htreq);

      if (lcb_err != LCB_SUCCESS)

      { goto GT_ERR; }

      lcb_err = lcb_wait(handle->getLcb());
      printf("Wait returned..\n");

      GDB:

      $45 = {sock = -1275067896, io = 0x7f76b4000208, server = 0x0, instance = 0x4,
      url = 0x7f76ffffffff <Address 0x7f76ffffffff out of bounds>, nurl = 0, url_info = {field_set = 65535,
      port = 65535, field_data = {{off = 0, len = 0},

      {off = 19968, len = 476}

      ,

      {off = 0, len = 0}

      ,

      {off = 65535, len = 65535}

      ,

      {off = 65535, len = 65535}

      ,

      {off = 337, len = 0}

      }}, host = 0x7f76b4000000 " ", port = 0x0,
      path = 0x8000000000 <Address 0x8000000000 out of bounds>, npath = 36, password = 0x7f76b4000b90 "\020",
      method = LCB_HTTP_METHOD_GET, parser = 0x0, parser_settings =

      {on_message_begin = 0x25, on_url = 0x3132312e332e3031, on_header_field = 0x3231313a3830322e, on_header_value = 0x3031, on_headers_complete = 0x25, on_body = 0x3132312e332e3031, on_message_complete = 0x323131003830322e}

      ,
      root_ai = 0x3031, curr_ai = 0x35, event = 0x312f2f3a70747468, chunked = 775106096,
      on_complete = 0x323930383a383032, on_data = 0x746c75616665642f, output =

      {root = 0x0, read_head = 0x35 <Address 0x35 out of bounds>, write_head = 0x3 <Address 0x3 out of bounds>, size = 7, nbytes = 8}

      , input =

      {root = 0x7f76b400e0c0 "", read_head = 0x0, write_head = 0x55 <Address 0x55 out of bounds>, size = 0, nbytes = 0}

      , result =

      {root = 0x0, read_head = 0x0, write_head = 0x0, size = 0, nbytes = 0}

      , command_cookie = 0x0, cancelled = 0,
      completed = 0, headers_list = 0x25, headers = 0x3132312e332e3031, nheaders = 4120855481762722350}
      (gdb) frame 4
      #4 0x00007f76ce7340a3 in lcb_wait (instance=0x1dd9580) at src/wait.c:112
      112 instance->io->v.v0.run_event_loop(instance->io);
      (gdb) print *instance
      $46 = {type = LCB_TYPE_BUCKET, host = "10.3.121.212\000\070\060\071\061", '\000' <repeats 1008 times>,
      port = "8091", '\000' <repeats 28 times>,
      http_uri = 0x1dd14a0 "GET /pools/default/bucketsStreaming/default HTTP/1.1\r\nAuthorization: Basic QWRtaW5pc3RyYXRvcjoxMjM0NTY=\r\n\r\n", n_http_uri_sent = 107, event = 0x1dd8900, vbucket_config = 0x7f76b4003760,
      vbucket_stream = {
      header = 0x1dd7fb0 "HTTP/1.1 200 OK\r\nTransfer-Encoding: chunked\r\nServer: Couchbase Server 2.0.0-1956-rel-enterprise\r\nPragma: no-cache\r\nDate: Sun, 02 Dec 2012 16:58:58 GMT\r\nContent-Type: application/json; charset=utf-8\r\nC"..., input = {
      data = 0x1ddca90 "

      {\"name\":\"default\",\"bucketType\":\"membase\",\"authType\":\"sasl\",\"saslPassword\":\"\",\"proxyPort\":0,\"replicaIndex\":false,\"uri\":\"/pools/default/buckets/default?bucket_uuid=0535828b5b9f231994f876e3b4299956\",\"str"..., size = 4096, avail = 0}

      , chunk_size = 18446744073709551615, chunk = {

      Attachments

        For Gerrit Dashboard: CCBC-133
        # Subject Branch Project Status CR V

        Activity

          People

            mnunberg Mark Nunberg (Inactive)
            mnunberg Mark Nunberg (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