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

[BEAM-210] Test that empty final panes are not produced. #211

Closed
wants to merge 4 commits into from

Conversation

bjchambers
Copy link
Contributor

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

bchambers added 2 commits April 19, 2016 11:34
Add a test that we get an empty `ON_TIME` pane, and don't get the empty
final pane when using accumulation mode with the only if non-empty
`ClosingBehavior`.
@bjchambers
Copy link
Contributor Author

R: @mshields822 @kennknowles

@mshields822
Copy link
Contributor

LGTM
Though I'd be happier if we had the same test but with FIRE_ALWAYS and three output panes.

// Trigger with 2 elements
WindowMatchers.isSingleWindowedValue(containsInAnyOrder(1, 2), 1, 0, 10),
// Trigger for the empty on time pane.
WindowMatchers.isSingleWindowedValue(containsInAnyOrder(1, 2), 9, 0, 10)));
Copy link
Member

Choose a reason for hiding this comment

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

You said you couldn't repro the problem in the JIRA ticket, but this test seems to confirm exactly the WAI behavior.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was unable to repro the report of broken behavior. I was able to verify the WAI behavior.

@kennknowles
Copy link
Member

LGTM, but do wait for travis as well. We have had a couple issues caught by only one or the other CI.

@bjchambers
Copy link
Contributor Author

I added a copy of this test with TRIGGER_ALWAYS.

@asfgit asfgit closed this in f1aa490 Apr 19, 2016
swegner pushed a commit to swegner/beam that referenced this pull request Apr 22, 2016
@bjchambers bjchambers deleted the empty-final-panes branch November 21, 2016 21:41
iemejia pushed a commit to iemejia/beam that referenced this pull request Jan 12, 2018
mareksimunek pushed a commit to mareksimunek/beam that referenced this pull request May 9, 2018
…lied-if

[euphoria-core] make sure that windowBy() can be appliedIf()
pl04351820 pushed a commit to pl04351820/beam that referenced this pull request Dec 20, 2023
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

3 participants