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

BatchLogManager shouldn't serialize mutations with version 1.2 in 2.1.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.0.7, 2.1 beta2
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal

      Description

      BatchLogManager serialize and deserialize mutations using MessagingService.VERSION_12 and this is hardcoded. Meaning that it does that in 2.0, 2.1 and trunk, even though in 2.1 the 1.2 format is not properly serialized properly since this commit (meaning that I'm pretty sure batch logs on super columns is broken on 2.1 currently). And keeping the 1.2 format indefinitely just for batchlog is unrealistic.

      So batchlog needs to do something like hints, record the messaging format used to encode every mutation and use that for deserialization, but always serialize with the current format.

        Attachments

          Activity

            People

            • Assignee:
              aleksey Aleksey Yeschenko
              Reporter:
              slebresne Sylvain Lebresne
              Authors:
              Aleksey Yeschenko
              Reviewers:
              Sylvain Lebresne
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: