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

fix upgrade_through_versions local mode for rolling upgrades

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Low
    • Resolution: Unresolved
    • None
    • Legacy/Testing
    • None

    Description

      Upgrade tests now have a local mode for easier debugging with local code modifications (instead of fetching remote versions). This works by locally changing branches and building cassandra as needed.

      There's a potential problem for rolling upgrades because the code will be updated while some of the nodes are still using the last version. I'm not certain if this really affects much in practice but should be relatively straightforward to fix.

      Instead of switching branches, the tests will need to check out the target branch/tag to another location on the filesystem. When upgrading, another version will be checked out to another location on the filesystem, etc. To keep this (hopefully) platform agnostic we should be able to use the python tempfile module, and git can probably be used to check out a single branch as described here: http://stackoverflow.com/questions/1778088/how-to-clone-a-single-branch-in-git

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: