-
Notifications
You must be signed in to change notification settings - Fork 366
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
base: main
Are you sure you want to change the base?
Conversation
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.
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) |
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.
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?
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