-
Notifications
You must be signed in to change notification settings - Fork 380
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
Notify panics in handlers to the scheduler thread promptly #1574
Conversation
62520f2
to
5b09500
Compare
oops, fixed the pr title... branch name is complete misnomer. I won't fix it... ;) |
let progress = sleepless_testing::setup(&[ | ||
&TestCheckPoint::BeforeNewTask, | ||
&CheckPoint::NewTask(0), | ||
&PanickingHanlderCheckPoint::BeforeNotifiedPanic, | ||
&CheckPoint::SchedulerThreadAborted, | ||
&PanickingHanlderCheckPoint::BeforeIgnoredPanic, | ||
&TestCheckPoint::BeforeEndSession, | ||
]); |
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.
I'm satisfied with sleepless_testing
. :)
5b09500
to
0067ad6
Compare
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.
only a nit on this one!
unified-scheduler-pool/src/lib.rs
Outdated
// It seems that scheduler has been aborted... | ||
// This branch is deliberately tested by using 2 transactions with | ||
// different timings in test_scheduler_schedule_execution_panic |
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.
nit: seems odd to me to comment how the code is tested in the code itself. test name could change, etc.
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.
hm, good point. done: d83571b
…1574) * Gracefully abort scheduler on a panic in handlers * Move test-related mention out of the tested code itself
Problem
From #1211:
Summary of Changes
This pr addresses (2).