Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve the rawProducer and rawSuperStreamProducer status #337

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

Gsantomaggio
Copy link
Member

The pr is part of #336 the aim is to standardise the behaviour.

  • Add AlreadyClosedException when a producer or super stream producer is closed In the same way like AMQP does with channels

  • Producer: Flush the pending messages when closed.

  • Producer: Add AlreadyClosedException when closed. So it is the same like: AMQP and RawProducer and RawSuperStreamProducer

  • Improve IsAKnownException function with the AggregateException that can contains known exceptions needed for reconnect the client

  • Add EntitiesStateTests to test all the status and verify that all the entities have the same behaviour

The pr is part of #336
the aim is to standardise the behaviour.

- Add AlreadyClosedException when a producer or super stream producer is closed
  In the same way like AMQP does with channels

- Producer: Flush the pending messages when closed.
- Producer: Add AlreadyClosedException when closed. So it is the same like:
  AMQP and RawProducer and RawSuperStreamProducer

- Improve IsAKnownException function with the AggregateException that can contains
  known exceptions needed for reconnect the client

- Add EntitiesStateTests to test all the status and verify that all the entities have the
  same behaviour

Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
Copy link

codecov bot commented Dec 19, 2023

Codecov Report

Attention: 19 lines in your changes are missing coverage. Please review.

Comparison is base (d5cdce4) 93.00% compared to head (7cc1a4e) 92.75%.

❗ Current head 7cc1a4e differs from pull request most recent head 14b7092. Consider uploading reports for the commit 14b7092 to get more accurate results

Files Patch % Lines
RabbitMQ.Stream.Client/Reliable/Producer.cs 56.66% 9 Missing and 4 partials ⚠️
RabbitMQ.Stream.Client/ClientExceptions.cs 50.00% 5 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #337      +/-   ##
==========================================
- Coverage   93.00%   92.75%   -0.25%     
==========================================
  Files         115      116       +1     
  Lines       10845    10952     +107     
  Branches      878      893      +15     
==========================================
+ Hits        10086    10159      +73     
- Misses        570      597      +27     
- Partials      189      196       +7     

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

@Gsantomaggio Gsantomaggio marked this pull request as ready for review December 20, 2023 10:38
Zerpet
Zerpet previously approved these changes Dec 20, 2023
RabbitMQ.Stream.Client/ClientExceptions.cs Outdated Show resolved Hide resolved
Signed-off-by: Gabriele Santomaggio <G.santomaggio@gmail.com>
@Gsantomaggio Gsantomaggio merged commit cf8c927 into main Dec 20, 2023
1 of 2 checks passed
@Gsantomaggio Gsantomaggio deleted the check_when_closed branch December 20, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants