index > Team Foundation Server - Reporting > TF53010 An unexpected exception occured while calculating code ch...

TF53010 An unexpected exception occured while calculating code ch...


I am trying to figure out why warehouse processing is failing. I turned on logging in the web.config before using the controller service and getting the errors below. Does anyone know how to go about fixing this? Even if it means manually deleting offending rows in the database itself?

[DW] [Info, PID 16004, TID 16864, 18:04:42.898] Microsoft.TeamFoundation.VersionControl.Adapter: Calculating differences. Previous: changeset 85, item $/{sanitized}, encoding 65001. Current: changeset 574, item $/{sanitized}, encoding 65001.

[DW] [Info, PID 16004, TID 13440, 18:05:25.962] Microsoft.TeamFoundation.VersionControl.Adapter: The adapter has been requested to stop.

[DW] [Error, PID 16004, TID 16864, 18:05:26.312] Microsoft.TeamFoundation.VersionControl.Adapter: An unexpected exception occured while calculating code churn: Calculating differences. Previous: changeset 85, item $/{sanitized}, encoding 65001. Current: changeset 574, item $/{sanitized}, encoding 65001. , exception:
Exception Message: Thread was being aborted. (type ThreadAbortException)

Exception Stack Trace: at Microsoft.Win32.Win32Native.ReadFile(SafeFileHandle handle, Byte* bytes, Int32 numBytesToRead, Int32& numBytesRead, IntPtr mustBeZero)
at System.IO.FileStream.ReadFileNative(SafeFileHandle handle, Byte[] bytes, Int32 offset, Int32 count, NativeOverlapped* overlapped, Int32& hr)
at System.IO.FileStream.ReadCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count)
at Microsoft.TeamFoundation.VersionControl.Common.UTF16CharacterEnumerator.ReadCharacter(Char& ch)
at Microsoft.TeamFoundation.VersionControl.Common.UTF16CharacterEnumerator.CompareTokens(Token t1, Token t2, Boolean ignoreHash, DiffOptions options, Byte[] buffer1, Byte[] buffer2)
at Microsoft.TeamFoundation.VersionControl.Common.LcsDiff.HashTokens(HashFileKind kind, Tokenizer tokenizer, DynamicTokenArray da)
at Microsoft.TeamFoundation.VersionControl.Common.LcsDiff.Diff(DiffSegmentOutputTypes types, DiffOptions options)
at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.Diff(String previousName, Int32 previousEncoding, String currentName, Int32 currentEncoding)
at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.calculateDifferences(Item previous, Item current)


[DW] [Error, PID 16004, TID 16864, 18:05:26.352] Microsoft.TeamFoundation.VersionControl.Adapter: An error occurred while processing changeset 574, unexpected exception:
Exception Message: Thread was being aborted. (type ThreadAbortException)

Exception Stack Trace: at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.calculateDifferences(Item previous, Item current)
at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.calculateChurnForFilePair(FilePair filePair)
at Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.processChangesets()


[DW] [Error, PID 16004, TID 16864, 18:05:26.382] Microsoft.TeamFoundation.VersionControl.Adapter: An unexpected exception occured:
Exception Message: Thread was being aborted. (type ThreadAbortException)

Exception Stack Trace: at Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.processChangesets()
at Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.MakeDataChanges()


[DW] [Error, PID 16004, TID 16864, 18:05:26.412] TF51209: A run-time error System.Threading.ThreadAbortException: Thread was being aborted.
at Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.MakeDataChanges()
at Microsoft.TeamFoundation.Warehouse.AdapterWrapper.RunTimerAdapter() occurred on adapter Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.

Also, the event log contains several errors itself:

Event Type: Error
Event Source: TFS Warehouse
Event Category: None
Event ID: 3000
Date: 8/15/2006
Time: 1:05:26 PM
User: N/A
Computer: TEAMSYSTEM
Description:
c: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff.
Technical Information (for the administrative staff):
Date (UTC): 8/15/2006 6:05:26 PM
Machine: TEAMSYSTEM
Application Domain: /LM/W3SVC/3/Root/Warehouse-7-128001384566659081
Assembly: Microsoft.TeamFoundation.Warehouse, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
Process Name: w3wp
Process Id: 16004
Thread Id: 16864
Account name: {sanitized}

Detailed Message: Microsoft.TeamFoundation.VersionControl.Adapter: An unexpected exception occured while calculating code churn: Calculating differences. Previous: changeset 85, item $/{sanitized}, encoding 65001. Current: changeset 574, item $/{sanitized}, encoding 65001. , exception:
Exception Message: Thread was being aborted. (type ThreadAbortException)

Exception Stack Trace: at Microsoft.Win32.Win32Native.ReadFile(SafeFileHandle handle, Byte* bytes, Int32 numBytesToRead, Int32& numBytesRead, IntPtr mustBeZero)
at System.IO.FileStream.ReadFileNative(SafeFileHandle handle, Byte[] bytes, Int32 offset, Int32 count, NativeOverlapped* overlapped, Int32& hr)
at System.IO.FileStream.ReadCore(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count)
at Microsoft.TeamFoundation.VersionControl.Common.UTF16CharacterEnumerator.ReadCharacter(Char& ch)
at Microsoft.TeamFoundation.VersionControl.Common.UTF16CharacterEnumerator.CompareTokens(Token t1, Token t2, Boolean ignoreHash, DiffOptions options, Byte[] buffer1, Byte[] buffer2)
at Microsoft.TeamFoundation.VersionControl.Common.LcsDiff.HashTokens(HashFileKind kind, Tokenizer tokenizer, DynamicTokenArray da)
at Microsoft.TeamFoundation.VersionControl.Common.LcsDiff.Diff(DiffSegmentOutputTypes types, DiffOptions options)
at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.Diff(String previousName, Int32 previousEncoding, String currentName, Int32 currentEncoding)
at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.calculateDifferences(Item previous, Item current)


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Event Type: Error
Event Source: TFS Warehouse
Event Category: None
Event ID: 3000
Date: 8/15/2006
Time: 1:05:26 PM
User: N/A
Computer: TEAMSYSTEM
Description:
TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff.
Technical Information (for the administrative staff):
Date (UTC): 8/15/2006 6:05:26 PM
Machine: TEAMSYSTEM
Application Domain: /LM/W3SVC/3/Root/Warehouse-7-128001384566659081
Assembly: Microsoft.TeamFoundation.Warehouse, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
Process Name: w3wp
Process Id: 16004
Thread Id: 16864
Account name: {sanitized}

Detailed Message: Microsoft.TeamFoundation.VersionControl.Adapter: An error occurred while processing changeset 574, unexpected exception:
Exception Message: Thread was being aborted. (type ThreadAbortException)

Exception Stack Trace: at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.calculateDifferences(Item previous, Item current)
at Microsoft.TeamFoundation.VersionControl.Adapter.Hatteras.calculateChurnForFilePair(FilePair filePair)
at Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.processChangesets()


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Event Type: Error
Event Source: TFS Warehouse
Event Category: None
Event ID: 3000
Date: 8/15/2006
Time: 1:05:26 PM
User: N/A
Computer: TEAMSYSTEM
Description:
TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff.
Technical Information (for the administrative staff):
Date (UTC): 8/15/2006 6:05:26 PM
Machine: TEAMSYSTEM
Application Domain: /LM/W3SVC/3/Root/Warehouse-7-128001384566659081
Assembly: Microsoft.TeamFoundation.Warehouse, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
Process Name: w3wp
Process Id: 16004
Thread Id: 16864
Account name: {sanitized}

Detailed Message: Microsoft.TeamFoundation.VersionControl.Adapter: An unexpected exception occured:
Exception Message: Thread was being aborted. (type ThreadAbortException)

Exception Stack Trace: at Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.processChangesets()
at Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.MakeDataChanges()


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Event Type: Error
Event Source: TFS Warehouse
Event Category: None
Event ID: 3000
Date: 8/15/2006
Time: 1:05:26 PM
User: N/A
Computer: TEAMSYSTEM
Description:
TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff.
Technical Information (for the administrative staff):
Date (UTC): 8/15/2006 6:05:26 PM
Machine: TEAMSYSTEM
Application Domain: /LM/W3SVC/3/Root/Warehouse-7-128001384566659081
Assembly: Microsoft.TeamFoundation.Warehouse, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0.50727
Process Details:
Process Name: w3wp
Process Id: 16004
Thread Id: 16864
Account name: {sanitized}

Detailed Message: TF51209: A run-time error System.Threading.ThreadAbortException: Thread was being aborted.
at Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.MakeDataChanges()
at Microsoft.TeamFoundation.Warehouse.AdapterWrapper.RunTimerAdapter() occurred on adapter Microsoft.TeamFoundation.VersionControl.Adapter.VCAdapter.

Aaron Anderson

All of the exceptions appear to be ThreadAbortExceptions. It would appear that something is killing the thread in the worker process (w3wp.exe). Is something shutting down and restarting IIS, for example?

Buck




http://blogs.msdn.com/buckh
Buck Hodges
How long has the processing been running? If it's more than 20 mins and IIS shuts down the app domain because of that reason, then a solution is to move the tfswarehouse to its own app-pool.


Patrick Ng - Visual Studio Team Foundation Server
Patrick Ng - MSFT
Not that I'm aware of. When I look at the logs, I see the apps starting and continuing. The error occurs quite frequently in the event log and always seems to focus on the same file / changeset.
Aaron Anderson

Hi Aaron,

How many items are in this changeset - how many are files, folders? What is the action being performed on the items? (eg, add, rename, edit, etc) How large is this file that it keeps stopping on?

You can find this information by running "tf changeset 574" at the command line.

I suspect that this file in this changeset is very large, which means it will take a while to download the file and calculate code churn - and the app pool keeps shutting down during that time, like Patrick had mentioned.

Thanks,
Mauli

Mauli Shah - MSFT
reply 5

You can use google to search for other answers

 

More Articles

Printing Reports from within Team Explorer
date current state was set
Unable to generate a model from the OLAP datasource
Accessing Global Lists From Reporting Services
Shelveset Report
Reporting on Plain Text Fields in Work Items
Projects are missing in reporting server
how to create entirely new report
Setting default parameter for project in report "Remaining W...
Deploying cube so as to make reports based on the analysis servic...
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Not all work items are displayed.
Reporting Services Error
Cross Project Reports
URL for the 50 standard TFS reports
Scenarios With No Tasks
How to validate parameters in the rdl it…
Unplanned work report incorrect
SQL SP1 killed some reports
"Hidden" reports in RTM ..
Setting for URL in Reporting services
Can not find any Perspective other than …
Create Report Problems
Passing new parameters to Microsoft VB.N…
Shelveset Report
error uploading reports

Hot Articles

Source Control Reporting
How to prevent users from viewing other …
Getting TFS Reports working again after …
TfsWarehouse Database not updated with a…
problems passing parameters to subreport
Can not find any Perspective other than …
TFS Reporting does not work due to wareh…
TFS Report Error
Extra strain report (overeffor or sobree…
Reports against Version Control
Quality Indicators Report
Reporting Changeset Details
Error in Customising a existing report
Problem accessing TFSwarehouse using OLA…
Scenarios With No Tasks

Recommend Articles

table pagination
TFS Analysys Services service stops all …
Error in Reporting
code churn - ignore binary files?
Reports show no data - but it's there! …
Build report not displaying build data
Reports for all current active projects
Only one CUBE in Team Foundation Server
Adding the Build_Type field to the TFS B…
Projects are missing in reporting server
replicate cool history tab in report
NullReferenceException during Code Churn…
date current state was set
Creating a custom report -- help
Problem with WI's and reportable="d…