• Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • Q4-22FY
    • Affects Version/s: None
    • Component/s: None

      What happened?

      With use Start() Stop() i have a constant CPU consume of 13% , when comment Start/Stop it's drop to 0%.

      Repro steps

      1 - Run app
      2 - Instance.Start()
      3 - Instance Stop()

      Version

      10.6.0

      What SDK flavour are you using?

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

      What type of application is this?

      Xamarin

      Client OS and version

      Microsoft Windows 10 Pro Version 10.0.19043 Build 19043

      Code snippets

          public async Task WaitSync()
          {
              var watch = System.Diagnostics.Stopwatch.StartNew();
      
              Session session = App.AppEnvironmentService.SyncDB.RealmInstance.GetSession();
              if (session != null && Connectivity.NetworkAccess == NetworkAccess.Internet)
              {
                 session.Start();
                  try
                  {
                      await Task.WhenAll(session.WaitForDownloadAsync(),
                                          session.WaitForUploadAsync());
                     session.Stop();
                  }
                  catch (Exception ex)
                  {
                      var t = ex;
                  }
                  App.AppEnvironmentService.SyncDB.GetCurrentUserExtension();
              }
                watch.Stop();
                var elapsedMs = watch.ElapsedMilliseconds;
          }
      

      Stacktrace of the exception/crash you're getting

      No response

      Relevant log output

      No response

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: