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

Explicitly initialize StageManager early in startup

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Patch Available
    • Priority: Low
    • Resolution: Unresolved
    • Fix Version/s: 4.x
    • Labels:
      None

      Description

      StageManager initializes itself through a static block and sets up every Stage, including pre-starting their threads. This initizalization can take a few hundred milliseconds. This timing impact is unpredictable and hard to reason about; it looks like it usually gets hit when creating new Keyspaces on start-up and announcing them through migrations.

      While these processes are resilient to these delays, it is dramatically easier to reason about over time if this initialization happens explicitly.

        Attachments

          Activity

            People

            • Assignee:
              Gerrrr Aleksandr Sorokoumov
              Reporter:
              Gerrrr Aleksandr Sorokoumov
              Authors:
              Aleksandr Sorokoumov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: