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

View replica is not written to pending endpoint when base replica is also view replica

    XMLWordPrintableJSON

    Details

    • Bug Category:
      Correctness - Recoverable Corruption / Loss
    • Severity:
      Normal
    • Since Version:

      Description

      From the dev list:

      There's an optimization that when we're lucky enough that the paired view replica is the same as this base replica, mutateMV doesn't use the normal view-mutation-sending code (wrapViewBatchResponseHandler) and just writes the mutation locally. In particular, in this case we do NOT write to the pending node (unless I'm missing something). But, sometimes all replicas will be paired with themselves - this can happen for example when number of nodes is equal to RF, or when the base and view table have the same partition keys (but different clustering keys). In this case, it seems the pending node will not be written at all...

      This was a regression from CASSANDRA-13069 and the original behavior should be restored.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pauloricardomg Paulo Motta (Deprecated)
                Reporter:
                pauloricardomg Paulo Motta (Deprecated)
                Authors:
                Paulo Motta (Deprecated)
                Reviewers:
                Zhao Yang
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: