@@ -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 ()) {
@@ -1324,6 +1324,8 @@ class TPartitionTxTestHelper : public TPartitionFixture {
1324
1324
void ExpectNoBatchCompletion ();
1325
1325
void WaitBatchCompletion (ui64 userActsCount);
1326
1326
void ResetBatchCompletion ();
1327
+
1328
+ void NonConflictingActsBatchOkTest ();
1327
1329
};
1328
1330
1329
1331
ui64 TPartitionTxTestHelper::MakeAndSendNormalOffsetCommit (ui64 client, ui64 offset) {
@@ -1370,6 +1372,11 @@ void TPartitionTxTestHelper::SendWriteInfoResponseImpl(const TActorId& supportiv
1370
1372
auto iter = this ->WriteInfoData .find (supportiveId);
1371
1373
Y_ABORT_UNLESS (!iter.IsEnd ());
1372
1374
reply->SrcIdInfo = iter->second ;
1375
+ reply->BytesWrittenTotal = 1 ;
1376
+ reply->BytesWrittenGrpc = 1 ;
1377
+ reply->BytesWrittenUncompressed = 1 ;
1378
+ reply->MessagesWrittenTotal = 1 ;
1379
+ reply->MessagesWrittenGrpc = 1 ;
1373
1380
SendEvent (reply, supportiveId, partitionId);
1374
1381
}
1375
1382
@@ -2549,7 +2556,7 @@ Y_UNIT_TEST_F(DataTxCalcPredicateOrder, TPartitionTxTestHelper)
2549
2556
WaitCommitDone (tx2);
2550
2557
}
2551
2558
2552
- Y_UNIT_TEST_F (NonConflictingActsBatchOk, TPartitionTxTestHelper) {
2559
+ void TPartitionTxTestHelper::NonConflictingActsBatchOkTest ( ) {
2553
2560
TTxBatchingTestParams params {.WriterSessions {" src3" , " src4" }};
2554
2561
Init (std::move (params));
2555
2562
ResetBatchCompletion ();
@@ -2592,6 +2599,14 @@ Y_UNIT_TEST_F(NonConflictingActsBatchOk, TPartitionTxTestHelper) {
2592
2599
WaitImmediateTxComplete (immTx2, true );
2593
2600
WaitCommitDone (tx3);
2594
2601
}
2602
+ Y_UNIT_TEST_F (TestNonConflictingActsBatchOk, TPartitionTxTestHelper) {
2603
+ NonConflictingActsBatchOkTest ();
2604
+ }
2605
+
2606
+ Y_UNIT_TEST_F (TestTxBatchInFederation, TPartitionTxTestHelper) {
2607
+ Ctx->Runtime ->GetAppData (0 ).PQConfig .SetTopicsAreFirstClassCitizen (false );
2608
+ NonConflictingActsBatchOkTest ();
2609
+ }
2595
2610
2596
2611
Y_UNIT_TEST_F (ConflictingActsInSeveralBatches, TPartitionTxTestHelper) {
2597
2612
TTxBatchingTestParams params {.WriterSessions {" src1" , " src4" },.EndOffset =1 };
@@ -3125,6 +3140,8 @@ Y_UNIT_TEST_F(TestBatchingWithProposeConfig, TPartitionTxTestHelper) {
3125
3140
WaitImmediateTxComplete (immTx2, true );
3126
3141
}
3127
3142
3143
+
3144
+
3128
3145
Y_UNIT_TEST_F (GetUsedStorage, TPartitionFixture) {
3129
3146
auto * actor = CreatePartition ({
3130
3147
.Partition =TPartitionId{2 , TWriteId{0 , 10 }, 100'001 },
0 commit comments