@@ -1292,6 +1292,9 @@ TPartitionInfo& TPersQueue::GetPartitionInfo(const TPartitionId& partitionId)
1292
1292
1293
1293
void TPersQueue::Handle (TEvPQ::TEvPartitionCounters::TPtr& ev, const TActorContext& ctx)
1294
1294
{
1295
+ PQ_LOG_D (" Handle TEvPQ::TEvPartitionCounters" <<
1296
+ " PartitionId " << ev->Get ()->Partition );
1297
+
1295
1298
const auto & partitionId = ev->Get ()->Partition ;
1296
1299
auto & partition = GetPartitionInfo (partitionId);
1297
1300
auto diff = ev->Get ()->Counters .MakeDiffForAggr (partition.Baseline );
@@ -2580,7 +2583,9 @@ const TPartitionInfo& TPersQueue::GetPartitionInfo(const NKikimrClient::TPersQue
2580
2583
const TWriteId writeId = GetWriteId (req);
2581
2584
ui32 originalPartitionId = req.GetPartition ();
2582
2585
2583
- Y_ABORT_UNLESS (TxWrites.contains (writeId) && TxWrites.at (writeId).Partitions .contains (originalPartitionId));
2586
+ Y_ABORT_UNLESS (TxWrites.contains (writeId) && TxWrites.at (writeId).Partitions .contains (originalPartitionId),
2587
+ " PQ %" PRIu64 " , WriteId {%" PRIu64 " , %" PRIu64 " }, Partition %" PRIu32,
2588
+ TabletID (), writeId.NodeId , writeId.KeyId , originalPartitionId);
2584
2589
2585
2590
const TPartitionId& partitionId = TxWrites.at (writeId).Partitions .at (originalPartitionId);
2586
2591
Y_ABORT_UNLESS (Partitions.contains (partitionId));
@@ -3589,7 +3594,9 @@ void TPersQueue::ProcessProposeTransactionQueue(const TActorContext& ctx)
3589
3594
3590
3595
if (tx.WriteId .Defined ()) {
3591
3596
const TWriteId& writeId = *tx.WriteId ;
3592
- Y_ABORT_UNLESS (TxWrites.contains (writeId));
3597
+ Y_ABORT_UNLESS (TxWrites.contains (writeId),
3598
+ " PQ %" PRIu64 " , TxId %" PRIu64 " , WriteId {%" PRIu64 " , %" PRIu64 " }" ,
3599
+ TabletID (), tx.TxId , writeId.NodeId , writeId.KeyId );
3593
3600
TTxWriteInfo& writeInfo = TxWrites.at (writeId);
3594
3601
writeInfo.TxId = tx.TxId ;
3595
3602
}
@@ -3901,7 +3908,9 @@ void TPersQueue::SendEvTxCalcPredicateToPartitions(const TActorContext& ctx,
3901
3908
3902
3909
if (tx.WriteId .Defined ()) {
3903
3910
const TWriteId& writeId = *tx.WriteId ;
3904
- Y_ABORT_UNLESS (TxWrites.contains (writeId));
3911
+ Y_ABORT_UNLESS (TxWrites.contains (writeId),
3912
+ " PQ %" PRIu64 " , TxId %" PRIu64 " , WriteId {%" PRIu64 " , %" PRIu64 " }" ,
3913
+ TabletID (), tx.TxId , writeId.NodeId , writeId.KeyId );
3905
3914
const TTxWriteInfo& writeInfo = TxWrites.at (writeId);
3906
3915
3907
3916
for (auto & [originalPartitionId, partitionId] : writeInfo.Partitions ) {
@@ -4146,9 +4155,6 @@ void TPersQueue::CheckTxState(const TActorContext& ctx,
4146
4155
PQ_LOG_D (" TxId " << tx.TxId <<
4147
4156
" , NewState " << NKikimrPQ::TTransaction_EState_Name (tx.State ));
4148
4157
4149
- [[fallthrough]];
4150
-
4151
- case NKikimrPQ::TTransaction::WAIT_RS:
4152
4158
//
4153
4159
// the number of TEvReadSetAck sent should not be greater than the number of senders
4154
4160
// from TEvProposeTransaction
@@ -4160,6 +4166,9 @@ void TPersQueue::CheckTxState(const TActorContext& ctx,
4160
4166
4161
4167
SendEvReadSetToReceivers (ctx, tx);
4162
4168
4169
+ [[fallthrough]];
4170
+
4171
+ case NKikimrPQ::TTransaction::WAIT_RS:
4163
4172
PQ_LOG_D (" HaveParticipantsDecision " << tx.HaveParticipantsDecision ());
4164
4173
4165
4174
if (tx.HaveParticipantsDecision ()) {
@@ -4604,8 +4613,6 @@ void TPersQueue::Handle(NLongTxService::TEvLongTxService::TEvLockStatus::TPtr& e
4604
4613
return ;
4605
4614
}
4606
4615
4607
- PQ_LOG_D (" delete write info for WriteId " << writeId << " and TxId " << writeInfo.TxId );
4608
-
4609
4616
if (!writeInfo.TxId .Defined ()) {
4610
4617
PQ_LOG_D (" delete write info for WriteId " << writeId);
4611
4618
// the message TEvProposeTransaction will not come anymore
@@ -4656,7 +4663,9 @@ void TPersQueue::Handle(TEvPQ::TEvDeletePartitionDone::TPtr& ev, const TActorCon
4656
4663
auto * event = ev->Get ();
4657
4664
Y_ABORT_UNLESS (event->PartitionId .WriteId .Defined ());
4658
4665
const TWriteId& writeId = *event->PartitionId .WriteId ;
4659
- Y_ABORT_UNLESS (TxWrites.contains (writeId));
4666
+ Y_ABORT_UNLESS (TxWrites.contains (writeId),
4667
+ " PQ %" PRIu64 " , WriteId {%" PRIu64 " , %" PRIu64 " }" ,
4668
+ TabletID (), writeId.NodeId , writeId.KeyId );
4660
4669
TTxWriteInfo& writeInfo = TxWrites.at (writeId);
4661
4670
Y_ABORT_UNLESS (writeInfo.Partitions .contains (event->PartitionId .OriginalPartitionId ));
4662
4671
const TPartitionId& partitionId = writeInfo.Partitions .at (event->PartitionId .OriginalPartitionId );
@@ -4690,7 +4699,9 @@ void TPersQueue::Handle(TEvPQ::TEvTransactionCompleted::TPtr& ev, const TActorCo
4690
4699
}
4691
4700
4692
4701
const TWriteId& writeId = *event->WriteId ;
4693
- Y_ABORT_UNLESS (TxWrites.contains (writeId));
4702
+ Y_ABORT_UNLESS (TxWrites.contains (writeId),
4703
+ " PQ %" PRIu64 " , WriteId {%" PRIu64 " , %" PRIu64 " }" ,
4704
+ TabletID (), writeId.NodeId , writeId.KeyId );
4694
4705
TTxWriteInfo& writeInfo = TxWrites.at (writeId);
4695
4706
Y_ABORT_UNLESS (writeInfo.Partitions .size () == 1 );
4696
4707
0 commit comments