GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — 2.x: Fix Flowable.take to route post-cancel errors to RxJavaPlugins.onError by akarnokd · Pull Request #5978 · ReactiveX/RxJava

Conversation

@akarnokd

@akarnokd akarnokd commented Apr 29, 2018

Copy link
Copy Markdown
Member

This PR makes sure errors emitted by the upstream just after the Flowable.take has received the specified amount of items get routed to RxJavaPlugins.onError.

Observable.take() and Flowable.limit() were already doing this. Added unit tests to verify the behavior across the board.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@akarnokd
2.x: Flowable.take to route post-cancel errors to plugin error handler
27dc12c
@akarnokd akarnokd added Cleanup 2.x labels Apr 29, 2018
@akarnokd akarnokd added this to the 2.2 milestone Apr 29, 2018
@codecov

codecov Bot commented Apr 29, 2018

Copy link
Copy Markdown

Codecov Report

Merging #5978 into 2.x will increase coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##               2.x    #5978      +/-   ##
===========================================
+ Coverage     98.2%   98.23%   +0.03%     
+ Complexity    6052     6049       -3     
===========================================
  Files          656      656              
  Lines        44077    44078       +1     
  Branches      6118     6118              
===========================================
+ Hits         43287    43302      +15     
+ Misses         243      232      -11     
+ Partials       547      544       -3
Impacted Files Coverage Δ Complexity Δ
...ivex/internal/operators/flowable/FlowableTake.java 100% <100%> (ø) 2 <0> (ø) ⬇️
.../operators/flowable/FlowableBlockingSubscribe.java 91.89% <0%> (-5.41%) 9% <0%> (-1%)
...activex/internal/observers/QueueDrainObserver.java 97.43% <0%> (-2.57%) 21% <0%> (-1%)
...perators/single/SingleFlatMapIterableFlowable.java 95.83% <0%> (-2.5%) 2% <0%> (ø)
...nternal/operators/observable/ObservableWindow.java 98% <0%> (-2%) 3% <0%> (ø)
...activex/internal/schedulers/ScheduledRunnable.java 98.07% <0%> (-1.93%) 29% <0%> (-1%)
...java/io/reactivex/processors/UnicastProcessor.java 98.8% <0%> (-1.2%) 67% <0%> (-1%)
...ternal/operators/completable/CompletableMerge.java 97.61% <0%> (-1.2%) 2% <0%> (ø)
...perators/observable/ObservableMergeWithSingle.java 99.06% <0%> (-0.94%) 2% <0%> (ø)
.../operators/mixed/FlowableConcatMapCompletable.java 99.14% <0%> (-0.86%) 2% <0%> (ø)
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dc94f56...27dc12c. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vanniktech
vanniktech approved these changes Apr 29, 2018
View reviewed changes

@vanniktech vanniktech left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ObservableLimitTest already has this unit test?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@akarnokd

akarnokd commented Apr 29, 2018

Copy link
Copy Markdown
Member Author

Not this specific one.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vanniktech

vanniktech commented Apr 29, 2018

Copy link
Copy Markdown
Collaborator

If this is tested in a different test then fine, otherwise it might make sense to also add it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@akarnokd

akarnokd commented Apr 29, 2018

Copy link
Copy Markdown
Member Author

There is no ObservableLimit.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@vanniktech

vanniktech commented Apr 29, 2018

Copy link
Copy Markdown
Collaborator

Alright. Then merge.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@akarnokd
akarnokd merged commit a1b9628 into ReactiveX:2.x Apr 29, 2018
@akarnokd
akarnokd deleted the TakeUndeliverable branch April 29, 2018 13:56
@akarnokd akarnokd mentioned this pull request May 17, 2018
2.1.14 release preparations #6009
Closed
@jared-bot jared-bot mentioned this pull request May 23, 2018
Dependency update: RxJava xmartlabs/bigbang-template#95
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@vanniktech vanniktech vanniktech approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

2.x Cleanup

Projects

None yet

Milestone

2.2

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@akarnokd @vanniktech
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.