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

Explicitly initialize StageManager early in startup

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Low
    • Resolution: Not A Problem
    • 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

          Issue Links

            Activity

              People

              • Assignee:
                Gerrrr Aleksandr Sorokoumov
                Reporter:
                Gerrrr Aleksandr Sorokoumov
                Authors:
                Aleksandr Sorokoumov
                Reviewers:
                Ekaterina Dimitrova
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: