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
|