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

Fix SemanticVersion.isSupportedBy patch/minor handling

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 1.2.5
    • None
    • None
    • Low

    Description

      Currently we use the following logic:

      return major == version.major && minor <= version.minor && patch <= version.patch;
      

      This requires both minor and patch vers to be less or equal, which means that, for example, '3.0.3' is not supported by '3.1.2', because, while 0 <= 1 (minor), 3 > 2 (patch). This is clearly not the intent since 3.1.2 > 3.0.3.

      CQL3 doc: "Minor version increments occur when new, but backward compatible, functionality is introduced". Hence '3.0.3' is supposed to be supported by '3.1.0'.

      This doesn't really affect 1.2, but breaks a lot of trunk dtests post CASSANDRA-3919.

      Attachments

        1. 5496.txt
          2 kB
          Aleksey Yeschenko

        Activity

          People

            aleksey Aleksey Yeschenko
            aleksey Aleksey Yeschenko
            Aleksey Yeschenko
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: