Uploaded image for project: 'Couchbase Lite'
  1. Couchbase Lite
  2. CBL-1743

[p2p]seeing Network ERROR :Unexpected or unclean socket disconnect! , when server is disconnected

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.4
    • 3.0
    • iOS
    • Security Level: Public
    • None
    • Jay 46
    • 5

    Description

      Attached the logs for ios p2p
      1. CBL-2.8.4-ios
      2. Created the docs in CBL1
      3. Start the message end point listener pull-push-continuous
      4. Make sure Listener is connected to CBL2
      5. Now disconnect the wifi on CBL2(device)

      • Actual Result: Seeing the CBL1 app is closing (Network ERROR: {C4SocketImpl#6}

        Unexpected or unclean socket disconnect! )
        Expected Result:

      • Replicator should connect again once CBL2's wifi is back

      Manual Test: No automation is available for this usecase

      Attachments

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

        Activity

          jimb Jim Borden added a comment -

          I notice an lldb prompt at the end of the logs. Did this stop on an error? If so could you provide the error details?

          jimb Jim Borden added a comment - I notice an lldb prompt at the end of the logs. Did this stop on an error? If so could you provide the error details?
          manasa.ghanta Manasa Ghanta (Inactive) added a comment - - edited

          With this error message, test execution terminated.
          DEBUG] Connection sent 182 bytes on socket 6

              • Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
                terminating with uncaught exception of type NSException
                [DEBUG] Connection sent 8 bytes on socket 6
          manasa.ghanta Manasa Ghanta (Inactive) added a comment - - edited With this error message, test execution terminated. DEBUG] Connection sent 182 bytes on socket 6 Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** - [__NSPlaceholderDictionary initWithObjects:forKeys:count:] : attempt to insert nil object from objects [0] ' terminating with uncaught exception of type NSException [DEBUG] Connection sent 8 bytes on socket 6
          jimb Jim Borden added a comment -

          This is an Objective-C crash so I will have Jay Vavachan look at it.

          jimb Jim Borden added a comment - This is an Objective-C crash so I will have Jay Vavachan look at it.
          Jayahari.Vavachan Jay Vavachan added a comment - - edited

          Crash was happening when c4error message returned is empty, which should be handled in platform side. Created the PR to handle the crash, but when the wifi is turned OFF it returns 4002(permanent error) from the other side which will cause the test to fail. 

          Jayahari.Vavachan Jay Vavachan added a comment - - edited Crash was happening when c4error message returned is empty, which should be handled in platform side. Created the PR to handle the crash, but when the wifi is turned OFF it returns 4002(permanent error) from the other side which will cause the test to fail. 
          Jayahari.Vavachan Jay Vavachan added a comment -

          Fixed the crash!

          Jayahari.Vavachan Jay Vavachan added a comment - Fixed the crash!

          Current not able to verify, seeing replicator connection issues

          manasa.ghanta Manasa Ghanta (Inactive) added a comment - Current not able to verify, seeing replicator connection issues
          Jayahari.Vavachan Jay Vavachan added a comment -

          For p2p, when the other side get disconnects, replicator will not retry and considers as permanent error. We already discussed about this here https://issues.couchbase.com/browse/CBL-1812.

          Jayahari.Vavachan Jay Vavachan added a comment - For p2p, when the other side get disconnects, replicator will not retry and considers as permanent error. We already discussed about this here https://issues.couchbase.com/browse/CBL-1812 .

          People

            manasa.ghanta Manasa Ghanta (Inactive)
            manasa.ghanta Manasa Ghanta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty