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

MaxAttempt when set NSUIntegerMax, converts to Zero

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.1.0
    • 3.1.0
    • LiteCore
    • Security Level: Public
    • None
    • Jim 93
    • 2

    Description

      Issue started happening recently , around after this commit :
      LC: c557c997a8b0e62835d52f75ba6941ebb2896750

      Here even if we set the NSUIntegerMax as maxAttempts, it gets converted to Zero here
      https://github.com/couchbase/couchbase-lite-core/blob/master/Replicator/c4RemoteReplicator.hh#L227

      You can find the logs, where I have checked the config.maxAttempts value set as `18446744073709551614`

      (lldb) po options
      {
          checkpointInterval = 1;
          headers =     {
              "User-Agent" = "CouchbaseLite/3.1.0 (ObjC; macOS 13.0.0) Build/0 Commit/7faa7a3d+CHANGES LiteCore/3.1.0-EE (500a5925+fc1900d2)";
          };
          heartbeat = 300;
          maxRetries = 18446744073709551614;
          maxRetryInterval = 300;
      }
      

      And later the logs, it says, MaxRetry code is 0

      2022-11-07 05:12:17.214698-0800 xctest[52243:334482] CouchbaseLite Replicator ERROR: {C4Replicator#6} Will not retry; max retry count (0) reached
      

      Attachments

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

        Activity

          People

            jimb Jim Borden
            Jayahari.Vavachan Jay Vavachan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty