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

fix "if" condition for mx4j tool in cassandra-env.sh

    XMLWordPrintableJSON

Details

    Description

      There is this in cassandra-env.sh

      if [[ "$MX4J_ADDRESS" == \-Dmx4jaddress* ]]; then
      

      (similar for port)

      This is wrong for /bin/sh shell (our shebang in bin/cassandra) and this does not work, probably in bash only, because /bin/sh does not understand what "[[" is nor it understand what "==" is.

      The reason this was never detected so far is that the logic will never come there when MX4J_ADDRESS and / or MX4J_PORT is commented out couple lines above.

      Attachments

        Issue Links

          Activity

            People

              smiklosovic Stefan Miklosovic
              smiklosovic Stefan Miklosovic
              Stefan Miklosovic
              Brandon Williams
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 20m
                  20m