I am seeing exceptions in the dispose method of the WriteIntoMemoryBufferStream. This is likely to be because WriteBufferToUnderlyingStream fails and then it tries to do the same write again in dispose.
We should never attempt to re-write the same bytes on a stream after a stream has thrown an exception.
Background
I am seeing exceptions in the dispose method of the
WriteIntoMemoryBufferStream
. This is likely to be becauseWriteBufferToUnderlyingStream
fails and then it tries to do the same write again indispose
.We should never attempt to re-write the same bytes on a stream after a stream has thrown an exception.
[SC-57434]
Related to https://github.com/OctopusDeploy/Issues/issues/8266
How to review this PR
Quality :heavy_check_mark:
Pre-requisites