Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-10504

It will not work to skip to InitProducerId as lastError is always null

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: clients
    • Labels:
      None

      Description

      Kafka-8805 introduced an optimization for txn abort process: If the last error is an INVALID_PRODUCER_ID_MAPPING error, skip directly to InitProduceId.

      However this optimization will not work as the var lastError is always null. Because the txn state will transit to ABORTING_TRANSACTION from ABORTABLE_ERROR when beginAbort is called, and the lastError will updated to null.

      So then EndTxn is always called before InitProduceId.

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                zhaohaidao HaiyuanZhao
                Reporter:
                zhaohaidao HaiyuanZhao
                Reviewer:
                Boyang Chen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 12h
                  12h
                  Remaining:
                  Remaining Estimate - 12h
                  12h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified