Skip to content

Commit 7cfbd30

Browse files
committed
Merged PR 726586: Close HistoricMetadataCache after we finish workers
We intentionally close the cache (including HistoricMetadataCache - HMC) after we finish the workers. We might report PathSets coming from the workers to HMC, so it is important for HMC to be active. This is to resolve those warnings: https://dev.azure.com/mseng/Domino/_build/results?buildId=20522946&view=logs&j=253e5128-1058-5bd4-fdf1-9b556d3207f8&t=33cbe4a8-0d67-48ee-8ca4-2016dd25c0cc&l=36
1 parent fee50de commit 7cfbd30

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Public/Src/Engine/Scheduler/Scheduler.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1682,8 +1682,6 @@ public async Task<bool> WhenDone()
16821682
Logger.Log.TopPipsPerformanceInfo(m_loggingContext, processPipPerf);
16831683
}
16841684

1685-
await State.Cache.CloseAsync();
1686-
16871685
var shutdownServicesSucceeded = await m_serviceManager.ShutdownStartedServices(Context.CancellationToken.IsCancellationRequested);
16881686
Contract.Assert(
16891687
shutdownServicesSucceeded || m_executePhaseLoggingContext.ErrorWasLogged,
@@ -1712,6 +1710,10 @@ public async Task<bool> WhenDone()
17121710
}
17131711
}
17141712

1713+
// We intentionally close the cache (including HistoricMetadataCache - HMC) after we finish the workers.
1714+
// We might report PathSets coming from the workers to HMC, so it is important for HMC to be active.
1715+
await State.Cache.CloseAsync();
1716+
17151717
if (m_fingerprintStoreTarget != null)
17161718
{
17171719
// Dispose the fingerprint store to allow copying the files

0 commit comments

Comments
 (0)