Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9362 Native protocol v5
  3. CASSANDRA-10813

Add 'idempotent' flag to 'PREPARED' response

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Legacy/CQL
    • Labels:
      None

      Description

      I'm not sure how attainable this is, but it would be very convenient to know whether or not a statement that is prepared is idempotent. If at all possible it would be nice to add a bit to flags that communicates this in a future protocol version.

      This would be useful for client library implementors for making decisions based on whether or not a query is idempotent. For example, if a connection fails while a request is in flight, you can't be sure whether or not a write mutation was applied or not. If the write query was idempotent and client timestamps were used, you can feel comfortable simply retrying the request. The datastax drivers have the capability of specifying whether or not a query is idempotent manually, but it would be nice if C* could tell us whether or not a query is idempotent at prepare time (if it all possible) instead of depending on the user to tell us.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andrew.tolbert Andy Tolbert
            • Votes:
              5 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated: