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

Do not throw exceptions when socket options cannot be set

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 1.0.0-dp.1
    • None
    • None
    • None
    • 1
    • SDK39

    Description

      [2022-09-21 15:53:44.898] [2966,29902] [error] 692ms, [7a179789-dc51-4b7d-2726-1e76d368093f/9a193b05-783d-4678-2db7-358f32c32989/plain/default] <127.0.0.1/127.0.0.1:50471> IO error while reading from the socket("0dc4365a-4d0e-4c54-70fd-4a0da7dc26ae"): 2 (End of file)
      [2022-09-21 15:53:44.898] [2966,29902] [error] 0ms, [7a179789-dc51-4b7d-2726-1e76d368093f/d4ede630-6a59-4cf0-6c39-6c1fed9805ad/plain/default] <127.0.0.1/127.0.0.1:50457> IO error while reading from the socket("cbb0f7e9-a607-4545-0954-be00b761db47"): 2 (End of file)
      [2022-09-21 15:53:44.898] [2966,29902] [error] 0ms, [7a179789-dc51-4b7d-2726-1e76d368093f/708e7457-bc38-4596-c731-bf468cb0259a/plain/-] <127.0.0.1/127.0.0.1:50457> IO error while reading from the socket("6bd9c5f8-304d-4080-b85b-f304144ef7fe"): 2 (End of file)
      [2022-09-21 15:53:44.899] [2966,29902] [warning] 0ms, [7a179789-dc51-4b7d-2726-1e76d368093f/41247fd2-f61a-49ac-fb5a-f1198709b8ab/plain/default] <127.0.0.1:50471> unable to connect to 127.0.0.1:50471: 61 (Connection refused), check server ports and cluster encryption setting. is_open=true
      [2022-09-21 15:53:44.899] [2966,29902] [critical] 0ms, *** Fatal error encountered during exception handling (rev="70f0a175a0de285f32ca1193189b7c4e962683e9", compiler="AppleClang 13.1.6.13160021", system="Darwin-21.6.0", date="2022-09-21 09:48:46") ***
      [2022-09-21 15:53:44.899] [2966,29902] [critical] 0ms, Caught unhandled std::exception-derived exception. what(): set_option: Invalid argument
        test_mac_cyrillic_encoded_values                                PASS (0.07s)
      [2022-09-21 15:53:44.903] [2966,29902] [critical] 4ms, Call stack:
          /Users/sergeyauseyau/code/couchbase-ruby-client/lib/couchbase/libcouchbase.bundle(print_backtrace_to_buffer+0x30) [0x10d89e000+0x2c2260]
          /Users/sergeyauseyau/code/couchbase-ruby-client/lib/couchbase/libcouchbase.bundle(_ZN9couchbase4core8platformL27backtrace_terminate_handlerEv+0x1b4) [0x10d89e000+0x4690c4]
          /usr/lib/libc++abi.dylib(_ZSt11__terminatePFvvE+0x8) [0x7ff81cffd000+0xf4a7]
          /usr/lib/libc++abi.dylib(_ZSt9terminatev+0x38) [0x7ff81cffd000+0xf458]
          /Users/sergeyauseyau/code/couchbase-ruby-client/lib/couchbase/libcouchbase.bundle(_ZN4asio6detail9scheduler10do_run_oneERNS0_27conditionally_enabled_mutex11scoped_lockERNS0_21scheduler_thread_infoERKNSt3__110error_codeE+0x449) [0x10d89e000+0xe0049]
          /Users/sergeyauseyau/code/couchbase-ruby-client/lib/couchbase/libcouchbase.bundle(_ZN4asio6detail9scheduler3runERNSt3__110error_codeE+0x141) [0x10d89e000+0xdf9d1]
          /Users/sergeyauseyau/code/couchbase-ruby-client/lib/couchbase/libcouchbase.bundle(_ZNSt3__1L14__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZL19cb_Backend_allocatemE3$_1EEEEEPvS9_+0x4b) [0x10d89e000+0xe2f9b]
          /usr/lib/system/libsystem_pthread.dylib(_pthread_start+0x7d) [0x7ff81d04b000+0x64e1]
          /usr/lib/system/libsystem_pthread.dylib(thread_start+0xf) [0x7ff81d04b000+0x1f6b]
       
      libc++abi: terminating with uncaught exception of type std::__1::system_error: set_option: Invalid argument
      rake aborted!
      SignalException: SIGABRT
      /Users/sergeyauseyau/code/couchbase-ruby-client/vendor/bundle/ruby/3.1.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
      /Users/sergeyauseyau/.rubies/ruby-3.1.2/bin/bundle:25:in `load'
      /Users/sergeyauseyau/.rubies/ruby-3.1.2/bin/bundle:25:in `<main>'
      Tasks: TOP => test
      (See full trace by running task with --trace)
      
      

      Attachments

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

        Activity

          People

            avsej Sergey Avseyev
            avsej Sergey Avseyev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes