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

[test] Fix flaky test testLookupDynamicPartition #3447

Merged
merged 2 commits into from
May 31, 2024

Conversation

Zouxxyy
Copy link
Contributor

@Zouxxyy Zouxxyy commented May 30, 2024

Purpose

Fix flaky test testLookupDynamicPartition, https://github.com/apache/paimon/actions/runs/9305326341/job/25611978740

image

Tests

API and Format

Documentation

return OPEN_INPUT_STREAMS.stream()
.filter(s -> filter.test(s.file))
.collect(Collectors.toList());
return new ArrayList<>(OPEN_INPUT_STREAMS)
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like it's also traversed once, is there any difference?

Copy link
Contributor Author

@Zouxxyy Zouxxyy May 31, 2024

Choose a reason for hiding this comment

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

copy out to avoid ConcurrentModificationException, see https://github.com/apache/paimon/actions/runs/9305326341/job/25611978740

Copy link
Contributor

@JingsongLi JingsongLi left a comment

Choose a reason for hiding this comment

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

+1

@JingsongLi JingsongLi merged commit 9615fc4 into apache:master May 31, 2024
9 checks passed
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.

2 participants