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

Split and order IDEA workspace template VM_PARAMETERS

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 4.0.9, 4.1.1, 5.0-alpha1, 5.0
    • Build
    • None
    • Code Clarity
    • Low Hanging Fruit
    • All
    • None
    • Hide

      Manual testing - rerun ant generate-idea-files then run the Cassandra application target and start a unit test, then check the VM parameters field in the config.

      Confirmed for all three branches. https://github.com/jonmeredith/cassandra/tree/C18242-trunk

      Will post CI links shortly.

      Show
      Manual testing - rerun ant generate-idea-files then run the Cassandra application target and start a unit test, then check the VM parameters field in the config. Confirmed for all three branches. https://github.com/jonmeredith/cassandra/tree/C18242-trunk Will post CI links shortly.

    Description

      Line-based version control has trouble with merge conflicts in the IDEA template VM parameters and they’re annoying to fix as they’ve grown long. Split them across multiple lines and order them to and provide a hint to the user that they aren’t seeing all options.

       

            <option name="VM_PARAMETERS" value="-Dcassandra.config=file://$PROJECT_DIR$/test/conf/cassandra.yaml -Dlogback.configurationFile=file://$PROJECT_DIR$/test/conf/logback-test.xml -Dcassandra.logdir=$PROJECT_DIR$/build/test/logs -Djava.library.path=$PROJECT_DIR$/lib/sigar-bin -Dlegacy-sstable-root=$PROJECT_DIR$/test/data/legacy-sstables -Dinvalid-legacy-sstable-root=$PROJECT_DIR$/test/data/invalid-legacy-sstables -Dcassandra.ring_delay_ms=1000 -Dcassandra.skip_sync=true -ea -XX:MaxMetaspaceSize=384M -XX:SoftRefLRUPolicyMSPerMB=0 -XX:HeapDumpPath=build/test -Dcassandra.strict.runtime.checks=true -Dlegacy-sstable-root=$PROJECT_DIR$/test/data/legacy-sstables -Dinvalid-legacy-sstable-root=$PROJECT_DIR$/test/data/invalid-legacy-sstables -Dmigration-sstable-root=$PROJECT_DIR$/test/data/migration-sstables -Dcassandra.ring_delay_ms=1000 -Dcassandra.tolerate_sstable_size=true -Dcassandra.skip_sync=true -Dcassandra.reads.thresholds.coordinator.defensive_checks_enabled=true" />
      

      to

            <option name="VM_PARAMETERS" value="
                                                -Dcassandra.config=file://$PROJECT_DIR$/test/conf/cassandra.yaml
                                                -Dcassandra.logdir=$PROJECT_DIR$/build/test/logs
                                                -Dcassandra.reads.thresholds.coordinator.defensive_checks_enabled=true
                                                -Dcassandra.ring_delay_ms=1000
                                                -Dcassandra.ring_delay_ms=1000 -Dcassandra.tolerate_sstable_size=true
                                                -Dcassandra.skip_sync=true
                                                -Dcassandra.skip_sync=true
                                                -Dcassandra.strict.runtime.checks=true
                                                -Dinvalid-legacy-sstable-root=$PROJECT_DIR$/test/data/invalid-legacy-sstables
                                                -Dinvalid-legacy-sstable-root=$PROJECT_DIR$/test/data/invalid-legacy-sstables
                                                -Djava.library.path=$PROJECT_DIR$/lib/sigar-bin
                                                -Dlegacy-sstable-root=$PROJECT_DIR$/test/data/legacy-sstables
                                                -Dlegacy-sstable-root=$PROJECT_DIR$/test/data/legacy-sstables
                                                -Dlogback.configurationFile=file://$PROJECT_DIR$/test/conf/logback-test.xml
                                                -Dmigration-sstable-root=$PROJECT_DIR$/test/data/migration-sstables
                                                -XX:HeapDumpPath=build/test
                                                -XX:SoftRefLRUPolicyMSPerMB=0
                                                -ea -XX:MaxMetaspaceSize=384M
                                                -Didea.click.expand.for.rest.of.options" />
      

      In IDEA the first time the properties are modified the whitespace is cleaned up, and the hint stays at the end of the line as a reminder,

      Attachments

        Activity

          People

            jonmeredith Jon Meredith
            jonmeredith Jon Meredith
            Jon Meredith
            David Capwell
            Votes:
            0 Vote for this issue
            Watchers:
            2 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 - 1h 20m
                1h 20m