@@ -352,7 +352,7 @@ TPartition* TPartitionFixture::CreatePartitionActor(const TPartitionId& id,
352
352
config.MeteringMode );
353
353
Config.SetLocalDC (true );
354
354
355
- NPersQueue::TTopicNamesConverterFactory factory (true , " /Root/PQ" , " dc1" );
355
+ NPersQueue::TTopicNamesConverterFactory factory (Ctx-> Runtime -> GetAppData ( 0 ). PQConfig . GetTopicsAreFirstClassCitizen () , " /Root/PQ" , " dc1" );
356
356
TopicConverter = factory.MakeTopicConverter (Config);
357
357
TActorId quoterId;
358
358
if (Ctx->Runtime ->GetAppData (0 ).PQConfig .GetQuotingConfig ().GetEnableQuoting ()) {
@@ -1323,6 +1323,8 @@ class TPartitionTxTestHelper : public TPartitionFixture {
1323
1323
void ExpectNoBatchCompletion ();
1324
1324
void WaitBatchCompletion (ui64 userActsCount);
1325
1325
void ResetBatchCompletion ();
1326
+
1327
+ void NonConflictingActsBatchOkTest ();
1326
1328
};
1327
1329
1328
1330
ui64 TPartitionTxTestHelper::MakeAndSendNormalOffsetCommit (ui64 client, ui64 offset) {
@@ -1369,6 +1371,11 @@ void TPartitionTxTestHelper::SendWriteInfoResponseImpl(const TActorId& supportiv
1369
1371
auto iter = this ->WriteInfoData .find (supportiveId);
1370
1372
Y_ABORT_UNLESS (!iter.IsEnd ());
1371
1373
reply->SrcIdInfo = iter->second ;
1374
+ reply->BytesWrittenTotal = 1 ;
1375
+ reply->BytesWrittenGrpc = 1 ;
1376
+ reply->BytesWrittenUncompressed = 1 ;
1377
+ reply->MessagesWrittenTotal = 1 ;
1378
+ reply->MessagesWrittenGrpc = 1 ;
1372
1379
SendEvent (reply, supportiveId, partitionId);
1373
1380
}
1374
1381
@@ -2548,7 +2555,7 @@ Y_UNIT_TEST_F(DataTxCalcPredicateOrder, TPartitionTxTestHelper)
2548
2555
WaitCommitDone (tx2);
2549
2556
}
2550
2557
2551
- Y_UNIT_TEST_F (NonConflictingActsBatchOk, TPartitionTxTestHelper) {
2558
+ void TPartitionTxTestHelper::NonConflictingActsBatchOkTest ( ) {
2552
2559
TTxBatchingTestParams params {.WriterSessions {" src3" , " src4" }};
2553
2560
Init (std::move (params));
2554
2561
ResetBatchCompletion ();
@@ -2591,6 +2598,14 @@ Y_UNIT_TEST_F(NonConflictingActsBatchOk, TPartitionTxTestHelper) {
2591
2598
WaitImmediateTxComplete (immTx2, true );
2592
2599
WaitCommitDone (tx3);
2593
2600
}
2601
+ Y_UNIT_TEST_F (TestNonConflictingActsBatchOk, TPartitionTxTestHelper) {
2602
+ NonConflictingActsBatchOkTest ();
2603
+ }
2604
+
2605
+ Y_UNIT_TEST_F (TestTxBatchInFederation, TPartitionTxTestHelper) {
2606
+ Ctx->Runtime ->GetAppData (0 ).PQConfig .SetTopicsAreFirstClassCitizen (false );
2607
+ NonConflictingActsBatchOkTest ();
2608
+ }
2594
2609
2595
2610
Y_UNIT_TEST_F (ConflictingActsInSeveralBatches, TPartitionTxTestHelper) {
2596
2611
TTxBatchingTestParams params {.WriterSessions {" src1" , " src4" },.EndOffset =1 };
@@ -3124,6 +3139,8 @@ Y_UNIT_TEST_F(TestBatchingWithProposeConfig, TPartitionTxTestHelper) {
3124
3139
WaitImmediateTxComplete (immTx2, true );
3125
3140
}
3126
3141
3142
+
3143
+
3127
3144
Y_UNIT_TEST_F (GetUsedStorage, TPartitionFixture) {
3128
3145
auto * actor = CreatePartition ({
3129
3146
.Partition =TPartitionId{2 , TWriteId{0 , 10 }, 100'001 },
0 commit comments