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

[CELEBORN-1776] Add UT when replica enable and workers randomly shutdown #2997

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

zaynt4606
Copy link
Contributor

What changes were proposed in this pull request?

Add two UT when replica enable and workers randomly shutdown.

Why are the changes needed?

Test some fail cases.

Does this PR introduce any user-facing change?

How was this patch tested?

existing ut

Copy link
Contributor

@mridulm mridulm left a comment

Choose a reason for hiding this comment

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

Nice test @zaynt4606

workerKiller(workerKillTime)
val result1 = ss.sparkContext.parallelize(1 to 800, 100)
.flatMap(_ => (1 to 15000).iterator.map(num => num)).repartition(100).count()
assert(result1 == result)
Copy link
Contributor

Choose a reason for hiding this comment

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

There is an inherent risk here that we actually dont end up triggering the behavior we need to test.

Instead, do we want to introduce some delay (for specific partitions) to ensure failures happen while the application is running?

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