riptano / ccm

A script to easily create and destroy an Apache Cassandra cluster on localhost
Apache License 2.0
1.22k stars 303 forks source link

Store cassandra_version with config to prevent repeated parsing #635

Closed tolbertam closed 7 years ago

tolbertam commented 7 years ago

Noticed that common.get_version_from_build and get_dse_cassandra_version were invoked frequently when creating clusters and using ccm command later (as many as 35 times). These functions parse files on the file system to extract C* and DSE versions. Updated code to now store version and cassandra_version with cluster and node config.

Also updated get_dse_cassandra_version to use bin/dse cassandra -v instead of looking for cassandra-all.jar and parsing version number from it.