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

CASSSIDECAR-181: Ensure memory consistency from PeriodicTask executio… #167

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

yifan-c
Copy link
Contributor

@yifan-c yifan-c commented Dec 21, 2024

…ns and expose richer ScheduleDecision

Patch by Yifan Cai; Reviewed by TBD for CASSSIDECAR-181

…ns and expose richer ScheduleDecision

Patch by Yifan Cai; Reviewed by TBD for CASSSIDECAR-181
{
// TODO: migrate to org.apache.cassandra.sidecar.concurrent.TaskExecutorPool.executeBlocking(java.util.concurrent.Callable<T>, boolean)
return StopWatch.measureTimeTaken(workerExecutor.executeBlocking(blockingCodeHandler), this::recordTimeTaken);
return StopWatch.measureTimeTaken(workerExecutor.executeBlocking(blockingCodeHandler, ordered), this::recordTimeTaken);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

it did not honor the ordered parameter.

Comment on lines -69 to +75
* @return the identifier of the timer associated with this task
*/
public long schedule(PeriodicTask task)
public void schedule(PeriodicTask task)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Use unschedule method to unschedule task. It is improper to use timerID to unschedule, which cancels the need of exposing timerId.

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.

1 participant