Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14402 Transactions Server Side Defense
  3. KAFKA-17898

Seperate Epoch Bump Scenarios and Error Handling in TV2

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      With KAFKA-14562, we implemented epoch bump on both the client and the server. Mentioned below are the different epoch bump scenarios we have on hand after enabled tv2

      Non-Transactional Producers

      • Epoch bumping is always allowed.
      • Different code paths used to handle epoch bumping.

      Transactional Producers

      •  No Epoch Bump Allowed
        • coordinatorSupportsBumpingEpoch = false when initPIDVersion <3 or null
      • Client Triggered Epoch Bump Allowed
        • coordinatorSupportsBumpingEpoch = true when initPIDVersion >= 3
        • TransactionVersion2Enabled = false when endTxnVersion < 5
      • Only Server Triggered Epoch Bump Allowed
        • Transaction Version 2 = true and endTxnVersion >= 5

       

      We want to refine the code and make it more structured to correctly handle epoch bumping in the above mentioned cases.

      Attachments

        Issue Links

          Activity

            People

              rreddy22 Ritika Reddy
              rreddy22 Ritika Reddy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: