[ 
https://issues.apache.org/jira/browse/CASSSIDECAR-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yifan Cai updated CASSSIDECAR-210:
----------------------------------
          Fix Version/s: 1.0
    Source Control Link: 
https://github.com/apache/cassandra-sidecar/commit/0712bf603429d13f6e6dadaae8b2f238e3182cc5
             Resolution: Fixed
                 Status: Resolved  (was: Ready to Commit)

> Fix PeriodicTaskExecutor double execution due to race from reschedule
> ---------------------------------------------------------------------
>
>                 Key: CASSSIDECAR-210
>                 URL: https://issues.apache.org/jira/browse/CASSSIDECAR-210
>             Project: Sidecar for Apache Cassandra
>          Issue Type: Bug
>          Components: Rest API
>            Reporter: Yifan Cai
>            Assignee: Yifan Cai
>            Priority: Major
>             Fix For: 1.0
>
>          Time Spent: 2h 50m
>  Remaining Estimate: 0h
>
> {color:#000000}We have observed a periodic task (in this case, the schema 
> reporting task) running twice within the same reporting interval. {color}
> {color:#000000}The unexpected behavior is because the schedule call as part 
> of the rescheduling can race with the schedule call at the end of a periodic 
> task run. As a consequence, the termination condition of a schedule is 
> incorrectly removed, causing multiple schedules of the same task being 
> executed.{color}
> {color:#000000}This patch fixes the bug by ensuring a single thread schedules 
> the next run{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to