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

add jdk version and ant build date to nodetool: version

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 5.x
    • Tool/nodetool
    • None
    • Operability
    • Low Hanging Fruit
    • All
    • None

    Description

      1. I have JDK 11, 17, and 21 installed locally, and it's sometimes inconvenient to determine which one I'm currently using. Although I can use the following approach:
       

      ➜ bin cat ../logs/system.log |grep "JDK"
      INFO [main] 2024-06-18 19:11:19,801 CassandraDaemon.java:612 - JVM vendor/version: OpenJDK 64-Bit Server VM/11.0.23
       
      ➜ bin jcmd pid VM.version
      54566:
      OpenJDK 64-Bit Server VM version 11.0.23+9-LTS
      JDK 11.0.23
      

       

      2. I often build the source code locally, and I need the "ant build time" to confirm that this local cluster is using the tarball I built a few minutes ago.

       

      The preview:
      ➜ bin ./nodetool version -v
      ReleaseVersion: 5.1-SNAPSHOT
      BuildDate: 2024-06-20 23:33:22 CST
      GitSHA: 8def5d1faafca7c18cf640e19c67e5c205eb9b44
      JVM vendor/version: OpenJDK 64-Bit Server VM/11.0.23
      

       

      3. The git hash failed to add to ant MANIFEST.MF. and I fix it

       

      How to check it:
       
      jar xvf apache-cassandra-5.1-SNAPSHOT.jar | grep META-INF/MANIFEST.MF\n
      cat META-INF/MANIFEST.MF
       
      Manifest-Version: 1.0
      Ant-Version: Apache Ant 1.10.14
      Created-By: 11.0.23+9-LTS (Amazon.com Inc.)
      Multi-Release: true
      Implementation-Title: Cassandra
      Implementation-Version: 5.1-SNAPSHOT
      Implementation-Vendor: Apache
      Implementation-Git-SHA: 8def5d1faafca7c18cf640e19c67e5c205eb9b44
      Implementation-Build-Date: 2024-06-20 23:33:22 CST
      

       

      Attachments

        Issue Links

          Activity

            People

              maoling Ling Mao
              maoling Ling Mao
              Ling Mao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: