@@ -1466,7 +1466,7 @@ TPartition::EProcessResult TPartition::ApplyWriteInfoResponse(TTransaction& tx)
14661466 if (auto inFlightIter = TxInflightMaxSeqNoPerSourceId.find (s.first ); !inFlightIter.IsEnd ()) {
14671467 if (SeqnoViolation (inFlightIter->second .KafkaProducerEpoch , inFlightIter->second .SeqNo , s.second .ProducerEpoch , s.second .MinSeqNo )) {
14681468 tx.Predicate = false ;
1469- tx.Message = (MakeTxWriteErrorMessage (tx.GetTxId (), TopicName (), Partition, s.first , existing ->second .SeqNo ) <<
1469+ tx.Message = (MakeTxWriteErrorMessage (tx.GetTxId (), TopicName (), Partition, s.first , inFlightIter ->second .SeqNo ) <<
14701470 " MinSeqNo violation failure. " <<
14711471 " SeqNo " << s.second .MinSeqNo );
14721472 tx.WriteInfoApplied = true ;
@@ -1477,7 +1477,9 @@ TPartition::EProcessResult TPartition::ApplyWriteInfoResponse(TTransaction& tx)
14771477 if (auto existing = knownSourceIds.find (s.first ); !existing.IsEnd ()) {
14781478 if (SeqnoViolation (existing->second .ProducerEpoch , existing->second .SeqNo , s.second .ProducerEpoch , s.second .MinSeqNo )) {
14791479 tx.Predicate = false ;
1480- tx.Message = TStringBuilder () << " MinSeqNo violation failure on " << s.first ;
1480+ tx.Message = (MakeTxWriteErrorMessage (tx.GetTxId (), TopicName (), Partition, s.first , existing->second .SeqNo ) <<
1481+ " MinSeqNo violation failure. " <<
1482+ " SeqNo " << s.second .MinSeqNo );
14811483 tx.WriteInfoApplied = true ;
14821484 break ;
14831485 }
0 commit comments