Skip to content

Disposing pipeline should not dispose external inner pipeline#1529

Merged
martintmk merged 1 commit intomainfrom
mtomka/fix-disposable-pipelines
Aug 31, 2023
Merged

Disposing pipeline should not dispose external inner pipeline#1529
martintmk merged 1 commit intomainfrom
mtomka/fix-disposable-pipelines

Conversation

@martintmk
Copy link
Copy Markdown
Contributor

@martintmk martintmk commented Aug 31, 2023

Details on the issue fix or feature implementation

If resilience pipeline uses other pipeline it should not own it. Therefore the pipeline is disposed, the "external' pipeline should still stay alive as it's lifetime is managed outside of current pipeline.

Confirm the following

  • I started this PR by branching from the head of the default branch
  • I have targeted the PR to merge into the default branch
  • I have included unit tests for the issue/feature
  • I have successfully run a local build

@martintmk martintmk added the v8 Issues related to the new version 8 of the Polly library. label Aug 31, 2023
@martintmk martintmk added this to the v8.0.0 milestone Aug 31, 2023
@martintmk martintmk self-assigned this Aug 31, 2023
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 31, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01% 🎉

Comparison is base (5baee94) 83.98% compared to head (d63d5c6) 83.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1529      +/-   ##
==========================================
+ Coverage   83.98%   83.99%   +0.01%     
==========================================
  Files         278      279       +1     
  Lines        6542     6547       +5     
  Branches     1023     1023              
==========================================
+ Hits         5494     5499       +5     
  Misses        839      839              
  Partials      209      209              
Flag Coverage Δ
linux ?
macos 83.99% <100.00%> (+0.01%) ⬆️
windows 83.99% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
src/Polly.Core/ResiliencePipelineBuilderBase.cs 100.00% <ø> (ø)
src/Polly.Core/Utils/Pipeline/ExternalComponent.cs 100.00% <100.00%> (ø)
...ly.Core/Utils/Pipeline/PipelineComponentFactory.cs 100.00% <100.00%> (ø)
src/Polly.Testing/ResiliencePipelineExtensions.cs 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@martintmk martintmk enabled auto-merge (squash) August 31, 2023 07:03
@martintmk martintmk merged commit 0cbc4c6 into main Aug 31, 2023
@martintmk martintmk deleted the mtomka/fix-disposable-pipelines branch August 31, 2023 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix v8 Issues related to the new version 8 of the Polly library.

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants