TFS 2015仓库作业错误:TF221123:作业版本控制仓库同步



我们最近从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.

通过"仓库控制Web服务"检查"进程状态"后,我得到以下消息。我想了解发生这种情况的核心原因,以及我们如何解决这个问题?

<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>

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

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

请在TFS Collection数据库上运行以下脚本

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

详细信息可在以下文章中找到。

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

最新更新