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

Repair version gating will do the wrong thing in rc/beta dev builds

    XMLWordPrintableJSON

Details

    • Normal

    Description

      The version check gate in AnticompactionTask will fail with -betaX-SNAPSHOT and -rcX-SNAPSHOT builds. As SystemKeyspace.getReleaseVersion will return null for those. This means dtests and anyone else testing with dev builds will be getting the wrong repair behavior.

      AnticompactionTask.java

              SemanticVersion peerVersion = SystemKeyspace.getReleaseVersion(neighbor);
              if (peerVersion != null && peerVersion.compareTo(VERSION_CHECKER) > 0)
              {
                  MessagingService.instance().sendRR(acr.createMessage(), neighbor, new AnticompactionCallback(this), TimeUnit.DAYS.toMillis(1), true);
              }
              else
              {
                  MessagingService.instance().sendOneWay(acr.createMessage(), neighbor);
                  // immediately return after sending request
                  set(neighbor);
              }
      

      Attachments

        Issue Links

          Activity

            People

              yukim Yuki Morishita
              jjordan Jeremiah Jordan
              Yuki Morishita
              Jeremiah Jordan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: