zephyr45 commented on issue #13298:
URL: https://github.com/apache/seatunnel/issues/13298#issuecomment-7075645969

   F5/F6 behaviour, as SEZ9 asked in #13060 (head `117dc411`; Kafka code 
unchanged since `7c272c5a`):
   
   - `KafkaSinkWriter.abortRestoredTransactions` deduplicates prefixes only 
within one writer. If the legacy job set `transaction_prefix`, all legacy 
states share one `<prefix>-<checkpoint>` chain, and every writer assigned a 
legacy state probes it starting after its restored transaction ID. Writers 
without a legacy state don't probe it.
   - `KafkaTransactionSender.abortTransaction` stops at the first ID whose 
`initTransactions` returns epoch 0, and that call creates the ID, so the next 
writer gets epoch ≥ 1 there and goes one ID further. Concurrently or not, W 
such writers (at most the smaller of old and new parallelism) extend the chain 
by up to W − 1 IDs, and each re-initializes the whole chain. Each retried 
restore repeats the probe and extends it again.
   - With `transaction_prefix` unset, each legacy writer had its own 
`SeaTunnel%04d` prefix, so the chains normally don't overlap.
   - `dev` already probes this way (every writer restored with state calls 
`abortTransaction(kafkaStates.get(0).getCheckpointId() + 1)`); #13060 keeps it.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to