Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-795

[Bug]: WaitForDownloadAsync() and WaitForUploadAsync() never return

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      What happened?

      MongDB Sync at server is down because have integration error between Realm and Atlas.

      When execute WaitForDownloadAsync() and WaitForUploadAsync() they never return any error. Running endless.

      Repro steps

      1 - Error occurs in MongoDB between Atlas and Realm

      Version

      10.9.0

      What SDK flavour are you using?

      MongoDB Atlas (i.e. Sync, auth, functions)

      What type of application is this?

      Xamarin

      Client OS and version

      Android 8.1

      Code snippets

          public async Task WaitSync()
          {
             Session session = SyncDB.RealmInstance.SyncSession;
              if (session != null && Connectivity.NetworkAccess == NetworkAccess.Internet)
              {
                  try
                  {
                      await Task.WhenAll(session.WaitForDownloadAsync(),
                                          session.WaitForUploadAsync());
                  }
                  catch (Exception ex)
                  {
                      var t = ex;
                  }
                  App.AppEnvironmentService.SyncDB.GetCurrentUserExtension();
              }
          }
      

      Stacktrace of the exception/crash you're getting

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Server error 
      
      Error:
      
      recoverable event subscription error encountered: error getting new mongo client while creating pbs app translator: error connecting to MongoDB service cluster: failed to ping: server selection error: server selection timeout, current topology: { Type: Unknown, Servers: [{ Addr: lexsemanticcluster0-shard-00-00.owqih.mesh.mongodb.net:30556, Type: Unknown, Last error: connection() error occurred during connection handshake: connection(lexsemanticcluster0-shard-00-00.owqih.mesh.mongodb.net:30556[-327526]) socket was unexpectedly closed: EOF }, { Addr: lexsemanticcluster0-shard-00-01.owqih.mesh.mongodb.net:30556, Type: Unknown, Last error: connection() error occurred during connection handshake: connection(lexsemanticcluster0-shard-00-01.owqih.mesh.mongodb.net:30556[-327532]) socket was unexpectedly closed: EOF }, { Addr: lexsemanticcluster0-shard-00-02.owqih.mesh.mongodb.net:30556, Type: Unknown, Last error: connection() error occurred during connection handshake: connection(lexsemanticcluster0-shard-00-02.owqih.mesh.mongodb.net:30556[-327523]) socket was unexpectedly closed: EOF }, ] }
      Source:
      
      Error syncing MongoDB write
      

      Relevant log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      I'm not surre its a Mongodb Sdk message but reconnection time is high.
      
      [0:] 2022-07-07 14:57:49.751 Detail: Connection[1]: Negotiated protocol version: 3
      [0:] 2022-07-07 14:57:49.756 Debug: Connection[1]: Will emit a ping in 54586 milliseconds
      [0:] 2022-07-07 14:57:49.760 Debug: Connection[1]: Session[1]: Sending: IDENT(client_file_ident=xxx, client_file_ident_salt=xxx, scan_server_version=263, scan_client_version=38, latest_server_version=263, latest_server_version_salt=xxxx)
      [0:] 2022-07-07 14:57:49.764 Debug: Connection[1]: Session[1]: Sending: MARK(request_ident=2)
      [0:] 2022-07-07 14:58:29.826 Detail: Connection[1]: Allowing reconnection in 2878716 milliseconds
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: