Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-18563

Convert AccordStateCache cache from write-through to write-back

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0-alpha1, 5.0
    • Accord
    • None

    Description

      Pre-requisite work for soon to go up PRs that continue shifting the bulk of persistence from system tables to AccordJournal. The switch to write-back caching should allow to bypass writes to the system tables entirely for some of the transactions.

      Additionally fixes some bugs in the cache, e.g. AsyncLoader failing to load an object could cause entries to be forever stuck in PENDING state because it would never reach the code path that submits the load runnables to the executor (that is now the job of the cache). Also switched the list implementation from a hand-rolled ad-hoc one to the pre-existing IntrusiveLinkedList, plus various simplifications and cleanup.

      Attachments

        Activity

          People

            aleksey Aleksey Yeschenko
            aleksey Aleksey Yeschenko
            Aleksey Yeschenko
            Blake Eggleston
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: