[ https://issues.apache.org/jira/browse/CASSSIDECAR-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yifan Cai updated CASSSIDECAR-210: ---------------------------------- Authors: Yifan Cai Test and Documentation Plan: CI; Unit Status: Patch Available (was: Open) PR: [https://github.com/apache/cassandra-sidecar/pull/192] CI: [https://app.circleci.com/pipelines/github/yifan-c/cassandra-sidecar?branch=CASSSIDECAR-210%2Fdouble-run-fix] > 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 > Time Spent: 10m > 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