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

Check whether the startup warnings for unknown modules represent a legit problem or cosmetic issue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 5.0-beta2, 5.0, 5.1
    • Local/Other
    • None

    Description

      During the 5.0 alpha 2 release vote, paulo raised the following concerns:

      Launched a tarball-based 5.0-alpha2 container on top of
      "eclipse-temurin:17-jre-focal" and the server starts up fine, can run
      nodetool and cqlsh.
      I got these seemingly harmless JDK17 warnings during startup and when
      running nodetool (no warnings on JDK11):
      WARNING: Unknown module: jdk.attach specified to --add-exports
      WARNING: Unknown module: jdk.compiler specified to --add-exports
      WARNING: Unknown module: jdk.compiler specified to --add-opens
      WARNING: A terminally deprecated method in java.lang.System has been called
      WARNING: System::setSecurityManager has been called by
      org.apache.cassandra.security.ThreadAwareSecurityManager
      (file:/opt/cassandra/lib/apache-cassandra-5.0-alpha2-SNAPSHOT.jar)
      WARNING: Please consider reporting this to the maintainers of
      org.apache.cassandra.security.ThreadAwareSecurityManager
      WARNING: System::setSecurityManager will be removed in a future release
      Anybody knows if these warnings are legit/expected ? We can create
      follow-up tickets if needed.
      $ java --version
      openjdk 17.0.9 2023-10-17
      OpenJDK Runtime Environment Temurin-17.0.9+9 (build 17.0.9+9)
      OpenJDK 64-Bit Server VM Temurin-17.0.9+9 (build 17.0.9+9, mixed mode,
      sharing)
      
      Clarification: - When running nodetool only the "Unknown module" warnings show up. All warnings show up during startup.

      We need to verify whether this presents a real problem in the features where those modules are expected to be used, or if it is a false alarm. 

       

      Attachments

        Issue Links

          Activity

            People

              e.dimitrova Ekaterina Dimitrova
              e.dimitrova Ekaterina Dimitrova
              Ekaterina Dimitrova
              Ekaterina Dimitrova, Paulo Motta
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h