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

StorageProxy static initialization not triggered until thrift requests come in

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.1.0
    • None
    • None
    • Low

    Description

      While plugging in the metrics library for CASSANDRA-3671 I realized (because the metrics library was trying to add a shutdown hook on metric creation) that starting cassandra and simply shutting it down, causes StorageProxy to not be initialized until the drain shutdown hook.

      Effects:

      • StorageProxy mbean missing in visualvm/jconsole after initial startup (seriously, I thought I was going nuts )
      • And in general anything that makes assumptions about running early, or at least not during JVM shutdown, such as the metrics library, will be problematic

      Attachments

        1. CASSANDRA-3797-trunk-v1.txt
          2 kB
          Peter Schuller
        2. 3797-forname-this-time-for-sure.txt
          0.9 kB
          Jonathan Ellis
        3. 3797-forname.txt
          1 kB
          Jonathan Ellis

        Activity

          People

            scode Peter Schuller
            scode Peter Schuller
            Peter Schuller
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: