Uploaded image for project: 'Sidecar for Apache Cassandra'
  1. Sidecar for Apache Cassandra
  2. CASSSIDECAR-181

Ensure memory consistency from PeriodicTask executions and expose richer ScheduleDecision

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Review In Progress
    • Major
    • Resolution: Unresolved
    • None
    • Rest API
    • None
    • Semantic
    • Normal
    • Hide

      ci; unit

      Show
      ci; unit

    Description

      PeriodicTaskExecutor already ensures one active run of each periodic task at any time. However, the implementation cannot establish the happens-before ordering between 2 runs. Therefore, writes may not be visible to the next run. The patch changes the scheduling behavior in the executor to address the issue, so that the runs are properly ordered, serial as in a single thread.
      The patch also addressed a todo left in the code to expose richer ScheduleDecision enum, instead of using boolean for shouldSkip.

      Attachments

        Issue Links

          Activity

            People

              ycai Yifan Cai
              ycai Yifan Cai
              Francisco Guerrero
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m