File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
ydb/core/persqueue/ut/ut_with_sdk Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -445,6 +445,8 @@ Y_UNIT_TEST_SUITE(WithSDK) {
445
445
};
446
446
447
447
{
448
+ bool committed = false ;
449
+
448
450
auto r = setup.Read (TEST_TOPIC, TEST_CONSUMER, [&](auto & x) {
449
451
for (auto & m: x.GetMessages ()) {
450
452
if (x.GetPartitionSession ()->GetPartitionId () == 0 && m.GetOffset () == 1 ) {
@@ -456,13 +458,16 @@ Y_UNIT_TEST_SUITE(WithSDK) {
456
458
setup.Write (" message-1-2" , 1 );
457
459
} else if (x.GetPartitionSession ()->GetPartitionId () == 1 && m.GetOffset () == 0 ) {
458
460
m.Commit ();
461
+ committed = true ;
459
462
return false ;
460
463
}
461
464
}
462
465
463
466
return true ;
464
467
});
465
468
469
+ UNIT_ASSERT (committed);
470
+
466
471
Sleep (TDuration::Seconds (3 ));
467
472
468
473
// Commit hasn`t applyed because messages from the parent partitions has`t been committed
You can’t perform that action at this time.
0 commit comments