You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rework SimpleSetupCluster in cluster tests, and longer timeouts for select tests (#1762)
* rework SimpleSetupCluster so it's 1) async 2) checks for success throughout; async's a few more tests; adds some null checks
* bump timeouts on longer running cluster vector set tests; plumb [CancelAfter] so ClusterTestContext knows of it
* formatting
* address feedback
* this CancelAfter was not being enforced, as is too aggressive - remove it
* remove some debugging changes that slipped in
Copy file name to clipboardExpand all lines: libs/cluster/Server/Replication/ReplicationManager.cs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -251,7 +251,7 @@ or FailoverStatus.FAILOVER_IN_PROGRESS
251
251
return;
252
252
}
253
253
254
-
logger.LogInformation("Beginning resync to {primaryId} after replication session failed",primaryId);
254
+
logger?.LogInformation("Beginning resync to {primaryId} after replication session failed",primaryId);
255
255
256
256
// At this point we need to hold the lock until this upcoming task completes
257
257
suppressUnlock=true;
@@ -270,16 +270,16 @@ or FailoverStatus.FAILOVER_IN_PROGRESS
270
270
271
271
if(success)
272
272
{
273
-
logger.LogInformation("Resync to {primaryId} successfully started",primaryId);
273
+
logger?.LogInformation("Resync to {primaryId} successfully started",primaryId);
274
274
}
275
275
else
276
276
{
277
-
logger.LogWarning("Failed to resync to {primaryId} after replication session failed: {errorMessage}",primaryId,Encoding.UTF8.GetString(errorMessage.Span));
277
+
logger?.LogWarning("Failed to resync to {primaryId} after replication session failed: {errorMessage}",primaryId,Encoding.UTF8.GetString(errorMessage.Span));
278
278
}
279
279
}
280
280
catch(Exceptionex)
281
281
{
282
-
logger.LogError(ex,"Error encountered on replication recovery background task");
282
+
logger?.LogError(ex,"Error encountered on replication recovery background task");
0 commit comments