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

cassandra-env.sh may not work properly with jvm args containing a space

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Low
    • Resolution: Unresolved
    • None
    • Local/Config
    • linux

    • Low
    • Low Hanging Fruit

    Description

      When using the JVM_EXTRA_OPTS environment variable, it looks like there's some cases that may not work if an env var contains a space.

      For example, setting:

      export JVM_EXTRA_OPTS='-XX:OnOutOfMemoryError="echo oh_no"'
      

      Results in the jvm not starting because the resultant startup command looks to java like it should load a class called oh_no.

      Error: Could not find or load main class oh_no
      

      I think this results from the last line of cassandra-env.sh, where it does this:

      JVM_OPTS="$JVM_OPTS $JVM_EXTRA_OPTS"
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhatch Russ Hatch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: