Got some hairy service fabric traces that contain a number of COMExceptions.
Unfortunately it looks like the stack trace for this can't be cleaned up.
Here's a subset of the stack trace!
System.Runtime.InteropServices.COMException (0x80071BCD): Exception from HRESULT: 0x80071BCD
at System.Fabric.Interop.NativeClient.IFabricServiceManagementClient6.EndResolveServicePartition(IFabricAsyncOperationContext context)
at System.Fabric.FabricClient.ServiceManagementClient.ResolveServicePartitionEndWrapper(IFabricAsyncOperationContext context)
at System.Fabric.Interop.AsyncCallOutAdapter2`1.Finish(IFabricAsyncOperationContext context, Boolean expectedCompletedSynchronously)
What appears to be happening is that in EnhancedStackTrace.GetFrames(Exception) a new StackTrace is constructed from the exception, but that stack trace is empty. I think this is because the _stackTrace field is null, whilst the _stackTraceString field contains the string representation.
So at the moment I don't think anything can be easily done, however it may be worth while putting something in the documentation saying that there are some exceptions that can't be cleaned.
Got some hairy service fabric traces that contain a number of COMExceptions.
Unfortunately it looks like the stack trace for this can't be cleaned up.
Here's a subset of the stack trace!
What appears to be happening is that in
EnhancedStackTrace.GetFrames(Exception)
a newStackTrace
is constructed from the exception, but that stack trace is empty. I think this is because the_stackTrace
field is null, whilst the_stackTraceString
field contains the string representation.So at the moment I don't think anything can be easily done, however it may be worth while putting something in the documentation saying that there are some exceptions that can't be cleaned.