@@ -473,7 +473,7 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
473
473
SchemeEntry = resultSet[0 ];
474
474
475
475
CA_LOG_D (" Resolved TableId=" << TableId << " ("
476
- << TableId. PathId . ToString () << " "
476
+ << TablePath << " "
477
477
<< TableId.SchemaVersion << " )" );
478
478
479
479
if (TableId.SchemaVersion != SchemeEntry->TableId .SchemaVersion ) {
@@ -551,15 +551,15 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
551
551
switch (ev->Get ()->GetStatus ()) {
552
552
case NKikimrDataEvents::TEvWriteResult::STATUS_UNSPECIFIED: {
553
553
CA_LOG_E (" Got UNSPECIFIED for table `"
554
- << TableId. PathId . ToString () << " `."
554
+ << TablePath << " `."
555
555
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
556
556
<< " Sink=" << this ->SelfId () << " ."
557
557
<< getIssues ().ToOneLineString ());
558
558
TxManager->SetError (ev->Get ()->Record .GetOrigin ());
559
559
RuntimeError (
560
560
NYql::NDqProto::StatusIds::UNSPECIFIED,
561
561
NYql::TIssuesIds::DEFAULT_ERROR,
562
- TStringBuilder () << " Unspecified error for table `"
562
+ TStringBuilder () << " Unspecified error. Table `"
563
563
<< TablePath << " `." ,
564
564
getIssues ());
565
565
return ;
@@ -574,22 +574,21 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
574
574
}
575
575
case NKikimrDataEvents::TEvWriteResult::STATUS_ABORTED: {
576
576
CA_LOG_E (" Got ABORTED for table `"
577
- << TableId. PathId . ToString () << " `."
577
+ << TablePath << " `."
578
578
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
579
579
<< " Sink=" << this ->SelfId () << " ."
580
580
<< getIssues ().ToOneLineString ());
581
581
TxManager->SetError (ev->Get ()->Record .GetOrigin ());
582
582
RuntimeError (
583
583
NYql::NDqProto::StatusIds::ABORTED,
584
584
NYql::TIssuesIds::KIKIMR_OPERATION_ABORTED,
585
- TStringBuilder () << " Aborted for table `"
586
- << TablePath << " `." ,
585
+ TStringBuilder () << " Operation aborted." ,
587
586
getIssues ());
588
587
return ;
589
588
}
590
589
case NKikimrDataEvents::TEvWriteResult::STATUS_WRONG_SHARD_STATE:
591
590
CA_LOG_E (" Got WRONG SHARD STATE for table `"
592
- << TableId. PathId . ToString () << " `."
591
+ << TablePath << " `."
593
592
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
594
593
<< " Sink=" << this ->SelfId () << " ."
595
594
<< getIssues ().ToOneLineString ());
@@ -602,44 +601,43 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
602
601
RuntimeError (
603
602
NYql::NDqProto::StatusIds::UNAVAILABLE,
604
603
NYql::TIssuesIds::KIKIMR_TEMPORARILY_UNAVAILABLE,
605
- TStringBuilder () << " Wrong shard state for table `"
604
+ TStringBuilder () << " Wrong shard state. Table `"
606
605
<< TablePath << " `." ,
607
606
getIssues ());
608
607
}
609
608
return ;
610
609
case NKikimrDataEvents::TEvWriteResult::STATUS_INTERNAL_ERROR: {
611
610
CA_LOG_E (" Got INTERNAL ERROR for table `"
612
- << TableId. PathId . ToString () << " `."
611
+ << TablePath << " `."
613
612
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
614
613
<< " Sink=" << this ->SelfId () << " ."
615
614
<< getIssues ().ToOneLineString ());
616
615
TxManager->SetError (ev->Get ()->Record .GetOrigin ());
617
616
RuntimeError (
618
617
NYql::NDqProto::StatusIds::INTERNAL_ERROR,
619
618
NYql::TIssuesIds::KIKIMR_INTERNAL_ERROR,
620
- TStringBuilder () << " Internal error for table `"
621
- << TablePath << " `." ,
619
+ TStringBuilder () << " Internal error while executing transaction." ,
622
620
getIssues ());
623
621
return ;
624
622
}
625
623
case NKikimrDataEvents::TEvWriteResult::STATUS_DISK_SPACE_EXHAUSTED: {
626
624
CA_LOG_E (" Got DISK_SPACE_EXHAUSTED for table `"
627
- << TableId. PathId . ToString () << " `."
625
+ << TablePath << " `."
628
626
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
629
627
<< " Sink=" << this ->SelfId () << " ."
630
628
<< getIssues ().ToOneLineString ());
631
629
TxManager->SetError (ev->Get ()->Record .GetOrigin ());
632
630
RuntimeError (
633
631
NYql::NDqProto::StatusIds::UNAVAILABLE,
634
632
NYql::TIssuesIds::KIKIMR_DISK_SPACE_EXHAUSTED,
635
- TStringBuilder () << " Disk space exhausted for table `"
633
+ TStringBuilder () << " Disk space exhausted. Table `"
636
634
<< TablePath << " `." ,
637
635
getIssues ());
638
636
return ;
639
637
}
640
638
case NKikimrDataEvents::TEvWriteResult::STATUS_OUT_OF_SPACE: {
641
639
CA_LOG_W (" Got OUT_OF_SPACE for table `"
642
- << TableId. PathId . ToString () << " `."
640
+ << TablePath << " `."
643
641
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
644
642
<< " Sink=" << this ->SelfId () << " ."
645
643
<< " Ignored this error."
@@ -658,7 +656,7 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
658
656
}
659
657
case NKikimrDataEvents::TEvWriteResult::STATUS_OVERLOADED: {
660
658
CA_LOG_W (" Got OVERLOADED for table `"
661
- << TableId. PathId . ToString () << " `."
659
+ << TablePath << " `."
662
660
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
663
661
<< " Sink=" << this ->SelfId () << " ."
664
662
<< " Ignored this error."
@@ -669,30 +667,30 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
669
667
RuntimeError (
670
668
NYql::NDqProto::StatusIds::OVERLOADED,
671
669
NYql::TIssuesIds::KIKIMR_OVERLOADED,
672
- TStringBuilder () << " Tablet " << ev->Get ()->Record .GetOrigin () << " is overloaded. Table `"
670
+ TStringBuilder () << " Kikimr cluster or one of its subsystems is overloaded."
671
+ << " Tablet " << ev->Get ()->Record .GetOrigin () << " is overloaded. Table `"
673
672
<< TablePath << " `." ,
674
673
getIssues ());
675
674
}
676
675
return ;
677
676
}
678
677
case NKikimrDataEvents::TEvWriteResult::STATUS_CANCELLED: {
679
678
CA_LOG_E (" Got CANCELLED for table `"
680
- << TableId. PathId . ToString () << " `."
679
+ << TablePath << " `."
681
680
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
682
681
<< " Sink=" << this ->SelfId () << " ."
683
682
<< getIssues ().ToOneLineString ());
684
683
TxManager->SetError (ev->Get ()->Record .GetOrigin ());
685
684
RuntimeError (
686
685
NYql::NDqProto::StatusIds::CANCELLED,
687
686
NYql::TIssuesIds::KIKIMR_OPERATION_CANCELLED,
688
- TStringBuilder () << " Cancelled request to table `"
689
- << TablePath << " `." ,
687
+ TStringBuilder () << " Operation cancelled." ,
690
688
getIssues ());
691
689
return ;
692
690
}
693
691
case NKikimrDataEvents::TEvWriteResult::STATUS_BAD_REQUEST: {
694
692
CA_LOG_E (" Got BAD REQUEST for table `"
695
- << TableId. PathId . ToString () << " `."
693
+ << TablePath << " `."
696
694
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
697
695
<< " Sink=" << this ->SelfId () << " ."
698
696
<< getIssues ().ToOneLineString ());
@@ -707,7 +705,7 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
707
705
}
708
706
case NKikimrDataEvents::TEvWriteResult::STATUS_SCHEME_CHANGED: {
709
707
CA_LOG_E (" Got SCHEME CHANGED for table `"
710
- << TableId. PathId . ToString () << " `."
708
+ << TablePath << " `."
711
709
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
712
710
<< " Sink=" << this ->SelfId () << " ."
713
711
<< getIssues ().ToOneLineString ());
@@ -727,7 +725,7 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
727
725
}
728
726
case NKikimrDataEvents::TEvWriteResult::STATUS_LOCKS_BROKEN: {
729
727
CA_LOG_E (" Got LOCKS BROKEN for table `"
730
- << TableId. PathId . ToString () << " `."
728
+ << TablePath << " `."
731
729
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
732
730
<< " Sink=" << this ->SelfId () << " ."
733
731
<< getIssues ().ToOneLineString ());
@@ -744,7 +742,7 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
744
742
return ;
745
743
}
746
744
case NKikimrDataEvents::TEvWriteResult::STATUS_CONSTRAINT_VIOLATION: {
747
- CA_LOG_E (" Got CONSTRAINT VIOLATION for table."
745
+ CA_LOG_E (" Got CONSTRAINT VIOLATION for table ` " << TablePath << " ` ."
748
746
<< " ShardID=" << ev->Get ()->Record .GetOrigin () << " ,"
749
747
<< " Sink=" << this ->SelfId () << " ."
750
748
<< getIssues ().ToOneLineString ());
@@ -1022,15 +1020,17 @@ class TKqpTableWriteActor : public TActorBootstrapped<TKqpTableWriteActor> {
1022
1020
NYql::NDqProto::StatusIds::UNDETERMINED,
1023
1021
NYql::TIssuesIds::KIKIMR_OPERATION_STATE_UNKNOWN,
1024
1022
TStringBuilder ()
1025
- << " Error writing to table `" << TableId.PathId .ToString () << " `"
1023
+ << " State of operation is unknown. "
1024
+ << " Error writing to table `" << TablePath << " `"
1026
1025
<< " . Transaction state unknown for tablet " << ev->Get ()->TabletId << " ." );
1027
1026
} else {
1028
1027
TxManager->SetError (ev->Get ()->TabletId );
1029
1028
RuntimeError (
1030
1029
NYql::NDqProto::StatusIds::UNAVAILABLE,
1031
1030
NYql::TIssuesIds::KIKIMR_TEMPORARILY_UNAVAILABLE,
1032
1031
TStringBuilder ()
1033
- << " Error writing to table `" << TableId.PathId .ToString () << " `"
1032
+ << " Kikimr cluster or one of its subsystems was unavailable. "
1033
+ << " Error writing to table `" << TablePath << " `"
1034
1034
<< " : can't deliver message to tablet " << ev->Get ()->TabletId << " ." );
1035
1035
}
1036
1036
}
@@ -2237,7 +2237,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2237
2237
ReplyErrorAndDie (
2238
2238
NYql::NDqProto::StatusIds::UNAVAILABLE,
2239
2239
NYql::TIssuesIds::KIKIMR_TEMPORARILY_UNAVAILABLE,
2240
- TStringBuilder () << " Failed to deviler message to coordinator." ,
2240
+ TStringBuilder () << " Kikimr cluster or one of its subsystems was unavailable. Failed to deviler message to coordinator." ,
2241
2241
{});
2242
2242
return ;
2243
2243
}
@@ -2250,7 +2250,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2250
2250
ReplyErrorAndDie (
2251
2251
NYql::NDqProto::StatusIds::UNDETERMINED,
2252
2252
NYql::TIssuesIds::KIKIMR_OPERATION_STATE_UNKNOWN,
2253
- TStringBuilder () << " Failed to deviler message to coordinator." ,
2253
+ TStringBuilder () << " State of operation is unknown. Failed to deviler message to coordinator." ,
2254
2254
{});
2255
2255
return ;
2256
2256
}
@@ -2259,13 +2259,13 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2259
2259
ReplyErrorAndDie (
2260
2260
NYql::NDqProto::StatusIds::UNDETERMINED,
2261
2261
NYql::TIssuesIds::KIKIMR_OPERATION_STATE_UNKNOWN,
2262
- TStringBuilder () << " Failed to deviler message." ,
2262
+ TStringBuilder () << " State of operation is unknown. Failed to deviler message." ,
2263
2263
{});
2264
2264
} else {
2265
2265
ReplyErrorAndDie (
2266
2266
NYql::NDqProto::StatusIds::UNAVAILABLE,
2267
2267
NYql::TIssuesIds::KIKIMR_TEMPORARILY_UNAVAILABLE,
2268
- TStringBuilder () << " Failed to deviler message." ,
2268
+ TStringBuilder () << " Kikimr cluster or one of its subsystems was unavailable. Failed to deviler message." ,
2269
2269
{});
2270
2270
}
2271
2271
}
@@ -2342,7 +2342,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2342
2342
}
2343
2343
builder << " `" << path << " `" ;
2344
2344
}
2345
- return builder;
2345
+ return (tableInfo. Pathes . size () == 1 ? " Table: " : " Tables: " ) + builder;
2346
2346
};
2347
2347
2348
2348
// TODO: get rid of copy-paste
@@ -2356,7 +2356,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2356
2356
ReplyErrorAndDie (
2357
2357
NYql::NDqProto::StatusIds::UNSPECIFIED,
2358
2358
NYql::TIssuesIds::DEFAULT_ERROR,
2359
- TStringBuilder () << " Unspecified error for tables ` " << getPathes () << " ` . "
2359
+ TStringBuilder () << " Unspecified error. " << getPathes () << " . "
2360
2360
<< getIssues ().ToOneLineString (),
2361
2361
getIssues ());
2362
2362
return ;
@@ -2378,7 +2378,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2378
2378
ReplyErrorAndDie (
2379
2379
NYql::NDqProto::StatusIds::ABORTED,
2380
2380
NYql::TIssuesIds::KIKIMR_OPERATION_ABORTED,
2381
- TStringBuilder () << " Aborted for tables " << getPathes () << " . " ,
2381
+ TStringBuilder () << " Operation aborted. " ,
2382
2382
getIssues ());
2383
2383
return ;
2384
2384
}
@@ -2391,7 +2391,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2391
2391
ReplyErrorAndDie (
2392
2392
NYql::NDqProto::StatusIds::UNAVAILABLE,
2393
2393
NYql::TIssuesIds::KIKIMR_TEMPORARILY_UNAVAILABLE,
2394
- TStringBuilder () << " Wrong shard state for tables " << getPathes () << " ." ,
2394
+ TStringBuilder () << " Wrong shard state. " << getPathes () << " ." ,
2395
2395
getIssues ());
2396
2396
return ;
2397
2397
}
@@ -2404,7 +2404,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2404
2404
ReplyErrorAndDie (
2405
2405
NYql::NDqProto::StatusIds::INTERNAL_ERROR,
2406
2406
NYql::TIssuesIds::KIKIMR_INTERNAL_ERROR,
2407
- TStringBuilder () << " Internal error for tables " << getPathes () << " ." ,
2407
+ TStringBuilder () << " Internal error while executing transaction ." ,
2408
2408
getIssues ());
2409
2409
return ;
2410
2410
}
@@ -2417,7 +2417,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2417
2417
ReplyErrorAndDie (
2418
2418
NYql::NDqProto::StatusIds::UNAVAILABLE,
2419
2419
NYql::TIssuesIds::KIKIMR_DISK_SPACE_EXHAUSTED,
2420
- TStringBuilder () << " Disk space exhausted for tables " << getPathes () << " ." ,
2420
+ TStringBuilder () << " Disk space exhausted. " << getPathes () << " ." ,
2421
2421
getIssues ());
2422
2422
return ;
2423
2423
}
@@ -2431,7 +2431,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2431
2431
ReplyErrorAndDie (
2432
2432
NYql::NDqProto::StatusIds::OVERLOADED,
2433
2433
NYql::TIssuesIds::KIKIMR_OVERLOADED,
2434
- TStringBuilder () << " Tablet " << ev->Get ()->Record .GetOrigin () << " ( " << getPathes () << " ) " << " is out of space ." ,
2434
+ TStringBuilder () << " Tablet " << ev->Get ()->Record .GetOrigin () << " is out of space. " << getPathes () << " ." ,
2435
2435
getIssues ());
2436
2436
return ;
2437
2437
}
@@ -2445,7 +2445,9 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2445
2445
ReplyErrorAndDie (
2446
2446
NYql::NDqProto::StatusIds::OVERLOADED,
2447
2447
NYql::TIssuesIds::KIKIMR_OVERLOADED,
2448
- TStringBuilder () << " Tablet " << ev->Get ()->Record .GetOrigin () << " (" << getPathes () << " )" << " is overloaded." ,
2448
+ TStringBuilder () << " Kikimr cluster or one of its subsystems is overloaded."
2449
+ << " Tablet " << ev->Get ()->Record .GetOrigin () << " is overloaded."
2450
+ << " " << getPathes () << " ." ,
2449
2451
getIssues ());
2450
2452
return ;
2451
2453
}
@@ -2458,7 +2460,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2458
2460
ReplyErrorAndDie (
2459
2461
NYql::NDqProto::StatusIds::CANCELLED,
2460
2462
NYql::TIssuesIds::KIKIMR_OPERATION_CANCELLED,
2461
- TStringBuilder () << " Cancelled request to tables " << getPathes () << " ." ,
2463
+ TStringBuilder () << " Operation cancelled ." ,
2462
2464
getIssues ());
2463
2465
return ;
2464
2466
}
@@ -2471,7 +2473,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2471
2473
ReplyErrorAndDie (
2472
2474
NYql::NDqProto::StatusIds::BAD_REQUEST,
2473
2475
NYql::TIssuesIds::KIKIMR_BAD_REQUEST,
2474
- TStringBuilder () << " Bad request. Tables: " << getPathes () << " ." ,
2476
+ TStringBuilder () << " Bad request. " << getPathes () << " ." ,
2475
2477
getIssues ());
2476
2478
return ;
2477
2479
}
@@ -2484,7 +2486,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2484
2486
ReplyErrorAndDie (
2485
2487
NYql::NDqProto::StatusIds::SCHEME_ERROR,
2486
2488
NYql::TIssuesIds::KIKIMR_SCHEME_MISMATCH,
2487
- TStringBuilder () << " Scheme changed. Tables: " << getPathes () << " ." ,
2489
+ TStringBuilder () << " Scheme changed. " << getPathes () << " ." ,
2488
2490
getIssues ());
2489
2491
return ;
2490
2492
}
@@ -2501,7 +2503,6 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2501
2503
NYql::TIssuesIds::KIKIMR_LOCKS_INVALIDATED,
2502
2504
TStringBuilder ()
2503
2505
<< " Transaction locks invalidated. "
2504
- << (TxManager->GetShardTableInfo (ev->Get ()->Record .GetOrigin ()).Pathes .size () == 1 ? " Table: " : " Tables: " )
2505
2506
<< getPathes () << " ." ,
2506
2507
getIssues ());
2507
2508
return ;
@@ -2515,7 +2516,7 @@ class TKqpBufferWriteActor :public TActorBootstrapped<TKqpBufferWriteActor>, pub
2515
2516
ReplyErrorAndDie (
2516
2517
NYql::NDqProto::StatusIds::PRECONDITION_FAILED,
2517
2518
NYql::TIssuesIds::KIKIMR_CONSTRAINT_VIOLATION,
2518
- TStringBuilder () << " Constraint violated. Tables: " << getPathes () << " ." ,
2519
+ TStringBuilder () << " Constraint violated. " << getPathes () << " ." ,
2519
2520
getIssues ());
2520
2521
return ;
2521
2522
}
0 commit comments