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

Bootstrap handler called twice on bootstrap timeout

    XMLWordPrintable

Details

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

    Description

      If bootstrap times out, the handler is called https://github.com/couchbaselabs/couchbase-cxx-client/blob/7f07e53352d9ec76bb4c8ed612f19f03e2cac784/couchbase/io/mcbp_session.hxx#L699 and https://github.com/couchbaselabs/couchbase-cxx-client/blob/7f07e53352d9ec76bb4c8ed612f19f03e2cac784/couchbase/io/mcbp_session.hxx#L779. I presume this is unexpected, for example a lot of our tests use std::future which leads to an exception.

      terminating with uncaught exception of type std::__1::future_error: The state of the promise has already been set.
      

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            jake.rawsthorne Jake Rawsthorne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes