TestCluster: wait for cluster stabilization before starting tests#4343
TestCluster: wait for cluster stabilization before starting tests#4343sergeybykov merged 4 commits intodotnet:masterfrom
Conversation
|
@dotnet-bot test this please |
|
|
|
||
| if (totalWait.Elapsed < TimeSpan.FromSeconds(60)) | ||
| { | ||
| WriteLog($"Warning! {remainingSilos} silos do not have a consistent cluster view after {totalWait.ElapsedMilliseconds}ms, continuing without stabilization."); |
There was a problem hiding this comment.
I think you may miss a break here. If while loop runs longer than a certain time, then break from the loop?
| // Poll each silo to check that it knows the expected number of active silos. | ||
| // If any silo does not have the expected number of active silos in its cluster membership oracle, try again. | ||
| // If the cluster membership has not stabilized after a certain period of time, give up and continue anyway. | ||
| var totalWait = Stopwatch.StartNew(); |
There was a problem hiding this comment.
can you capsulate this section of code into a function WaitForClusterStabilizing or MakeSureAllSiloJoinedCluster method. Just to make it cleaner and more readable
|
Two tests are failing consistently: UnitTests.RuntimeCodeGenTests.RuntimeCodeGen_BasicEndToEnd
UnitTests.RuntimeCodeGenTests.RuntimeCodeGen_AddsSupportClasses
|
…t is accessible from TestCluster
|
@dotnet-bot test bvt We see this deps.json failure sometimes |
This PR adds a check in
TestClusterto verify that each silo has observed the expected number of active silos