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

          manasa.ghanta Manasa Ghanta (Inactive) created issue -
          manasa.ghanta Manasa Ghanta (Inactive) made changes -
          Field Original Value New Value
          Affects Version/s 2.8.4 [ 17255 ]
          manasa.ghanta Manasa Ghanta (Inactive) made changes -
          Component/s LiteCore [ 15347 ]
          manasa.ghanta Manasa Ghanta (Inactive) made changes -
          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.
          jimb Jim Borden made changes -
          Component/s iOS [ 15348 ]
          Component/s LiteCore [ 15347 ]
          jimb Jim Borden made changes -
          Story Points 1
          Jayahari.Vavachan Jay Vavachan made changes -
          Story Points 5
          Jayahari.Vavachan Jay Vavachan made changes -
          Assignee The Lite [ cbgto ] Jayahari Vavachan [ jayahari.vavachan ]
          Jayahari.Vavachan Jay Vavachan made changes -
          Fix Version/s Lithium [ 16190 ]
          Jayahari.Vavachan Jay Vavachan made changes -
          Rank Ranked higher
          Jayahari.Vavachan Jay Vavachan made changes -
          Rank Ranked higher
          daniel.petersen Daniel Petersen made changes -
          Sprint Jay 46 [ 1578 ]
          daniel.petersen Daniel Petersen made changes -
          Rank Ranked higher
          Jayahari.Vavachan Jay Vavachan made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Jayahari.Vavachan Jay Vavachan made changes -
          Status In Progress [ 3 ] In Review [ 10107 ]
          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 made changes -
          Status In Review [ 10107 ] In Progress [ 3 ]
          Jayahari.Vavachan Jay Vavachan added a comment -

          Fixed the crash!

          Jayahari.Vavachan Jay Vavachan added a comment - Fixed the crash!
          Jayahari.Vavachan Jay Vavachan made changes -
          Assignee Jayahari Vavachan [ jayahari.vavachan ] Manasa Ghanta [ manasa.ghanta ]
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]

          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 made changes -
          Link This issue relates to CBL-1961 [ CBL-1961 ]
          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 .
          manasa.ghanta Manasa Ghanta (Inactive) made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

          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