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

Replace intercepting System.exit by a custom SecurityManager with something else

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 6.x
    • Build
    • None
    • Semantic
    • Normal
    • All
    • None

    Description

      SecurityManager is currently used to intercept JVM shutdown in several places. Unfortunately, it will be dropped from JDK, and so far, there has been no alternative mechanism implemented in JDK. It already results in many runtime warnings when running Cassandra 5.0 with JDK 17 (those warnings cannot be disabled).

      https://openjdk.org/jeps/411

      We may wait for something provided by JDK in a future release or maybe implement a custom solution if needed.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jlewandowski Jacek Lewandowski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: