TFS 2015 warehouse job error: TF221123: Job Version Control Warehouse Sync

TFS 2015 warehouse job error: TF221123: Job Version Control Warehouse Sync

我们最近从 TFS 2010 迁移到 TFS 2015(更新 2),除了 我们每 12 分钟收到一次以下错误。

TF53010: The following error has occurred in a Team Foundation component or extension:

Application Domain: TfsJobAgent.exe
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=14.0.0.0, Culture=neutral, 

Detailed Message: TF221123: Job Version Control Warehouse Sync for team project collection JLT TFS 2010 was unable to run after 20 attempts.

通过 "Warehouse Control Web Service" 检查 "Process status" 后,我收到以下消息。 我想了解发生这种情况的核心原因以及我们如何解决这个问题?

<Job JobProcessingStatus="DataChange" Name="Version Control Warehouse Sync">
    <LastRun Result="Stopped" EndTimeUtc="2016-06-30T14:10:50.19Z" ExecutionStartTimeUtc="2016-06-30T14:00:49.877Z" QueueTimeUtc="2016-06-30T14:00:49.203Z">
        <ResultMessage>
            [Version Control Warehouse Sync]: ---> MakeDataChanges() result=DataChangesPending. 
            ---> MakeDataChanges() result=DataChangesPending. 
            ---> MakeDataChanges() result=DataChangesPending. 
            ---> MakeDataChanges() result=DataChangesPending. ---> 
            ...
            ...
            ---> TF221123: Job Version Control Warehouse Sync for team project collection JLT TFS 2010 was unable to run after 20 attempts.    
        </ResultMessage>
    </LastRun>
    <CurrentRun ExecutionStartTimeUtc="2016-06-30T14:12:50.75Z" QueueTimeUtc="2016-06-30T14:12:50.19Z" JobState="Running"/>
</Job>

进一步检查后,我们发现这是一个已知问题(已由 Microsoft 确认)并已在 TFS 2015(更新 3)中修复。

尽管它需要应用最新的 TFS 2015 更新,但是,可以通过在数据库级别应用以下解决方法来实现。

请运行TFS 集合数据库上的以下脚本

DECLARE @partitionId INT = 1
DECLARE @registryUpdates typ_KeyValuePairStringTableNullable
INSERT  @registryUpdates ([Key], Value)
SELECT  ‘#\Configuration\VersionControl\CodeChurn\InUpgrade\’, NULL
EXEC prc_UpdateRegistry @partitionId, @registryUpdates
DROP TABLE tbl_UpgradeCodeChurn

详细信息可以found in the following article.

在 运行 启用此脚本并将其放置几个小时后解决了这个报告的问题。