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

Reduce number of data directory scans during startup

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Awaiting Feedback
    • Low
    • Resolution: Unresolved
    • None
    • Low Hanging Fruit

    Description

      ATM we scan each data directory four times. We could easily reduce that to at least two, maybe to one.

      1. pre-flight (startup tests) scrub
      2. pre-flight (startup tests) sstable min version
      3. ColumnFamilyStore.createColumnFamilyStore
      4. ColumnFamilyStore.<init> (if loadSSTables==true)

      First two pre-flight tests could be combined to one and 3+4 could also be combined, as both appear at pretty related code paths.

      Attachments

        1. patch_CASSANDRA-10273_trunk
          6 kB
          Shaurya Gupta

        Activity

          People

            shaurya10000 Shaurya Gupta
            snazy Robert Stupp
            Shaurya Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: