3.x: Fix size+time bound window not creating windows properly by akarnokd · Pull Request #6652 · ReactiveX/RxJava · GitHub
Skip to content

3.x: Fix size+time bound window not creating windows properly#6652

Merged
akarnokd merged 1 commit into
ReactiveX:3.xfrom
akarnokd:WindowTimeAndSizeFix3x
Sep 17, 2019
Merged

3.x: Fix size+time bound window not creating windows properly#6652
akarnokd merged 1 commit into
ReactiveX:3.xfrom
akarnokd:WindowTimeAndSizeFix3x

Conversation

@akarnokd

Copy link
Copy Markdown
Member

There was a logic error in the size+time bound window operator for when to close a window if timers are not restarted when the size-bound is hit.

Due to this bug, two tests were not receiving and thus accounting for empty windows that are happening when the size-bound is hit followed by the periodic time-bound hit.

2.x will be fixed in a separate PR.

Fixes #6651

@akarnokd akarnokd added this to the 3.0 milestone Sep 12, 2019
@codecov

codecov Bot commented Sep 12, 2019

Copy link
Copy Markdown

@akarnokd akarnokd merged commit 6518eb9 into ReactiveX:3.x Sep 17, 2019
@akarnokd akarnokd deleted the WindowTimeAndSizeFix3x branch September 17, 2019 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Observable#window(long, java.util.concurrent.TimeUnit, long) if reached "window-max-count", the timespan not work

2 participants