@@ -1472,7 +1472,7 @@ Y_UNIT_TEST(ProduceScenario) {
1472
1472
// clientB join group, and get 0 partitions, becouse it's all at clientA
1473
1473
UNIT_ASSERT_VALUES_EQUAL (clientB.SaslHandshake ()->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1474
1474
UNIT_ASSERT_VALUES_EQUAL (clientB.SaslAuthenticate (" ouruser@/Root" , " ourUserPassword" )->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1475
- auto readInfoB = clientB.JoinAndSyncGroup (topics, group);
1475
+ auto readInfoB = clientB.JoinAndSyncGroup (topics, group, protocolName, 1000000 , minActivePartitions );
1476
1476
UNIT_ASSERT_VALUES_EQUAL (readInfoB.Partitions .size (), 0 );
1477
1477
1478
1478
// clientA gets RABALANCE status, because of new reader. We need to release some partitions for new client
@@ -1492,7 +1492,7 @@ Y_UNIT_TEST(ProduceScenario) {
1492
1492
// clientC join group, and get 0 partitions, becouse it's all at clientA and clientB
1493
1493
UNIT_ASSERT_VALUES_EQUAL (clientC.SaslHandshake ()->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1494
1494
UNIT_ASSERT_VALUES_EQUAL (clientC.SaslAuthenticate (" ouruser@/Root" , " ourUserPassword" )->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1495
- auto readInfoC = clientC.JoinAndSyncGroup (topics, group);
1495
+ auto readInfoC = clientC.JoinAndSyncGroup (topics, group, protocolName, 1000000 , minActivePartitions );
1496
1496
UNIT_ASSERT_VALUES_EQUAL (readInfoC.Partitions .size (), 0 );
1497
1497
1498
1498
// all clients gets RABALANCE status, because of new reader. We need to release some partitions for new client
@@ -1514,7 +1514,7 @@ Y_UNIT_TEST(ProduceScenario) {
1514
1514
// clientD join group, and get 0 partitions, becouse it's all at clientA, clientB and clientC
1515
1515
UNIT_ASSERT_VALUES_EQUAL (clientD.SaslHandshake ()->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1516
1516
UNIT_ASSERT_VALUES_EQUAL (clientD.SaslAuthenticate (" ouruser@/Root" , " ourUserPassword" )->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1517
- auto readInfoD = clientD.JoinAndSyncGroup (topics, group);
1517
+ auto readInfoD = clientD.JoinAndSyncGroup (topics, group, protocolName, 1000000 , minActivePartitions );
1518
1518
UNIT_ASSERT_VALUES_EQUAL (readInfoD.Partitions .size (), 0 );
1519
1519
1520
1520
// all clients gets RABALANCE status, because of new reader. We need to release some partitions
@@ -1570,9 +1570,9 @@ Y_UNIT_TEST(ProduceScenario) {
1570
1570
std::vector<TString> topics;
1571
1571
topics.push_back (topicName);
1572
1572
1573
- auto readInfoA = clientA.JoinGroup (topics, group);
1573
+ auto readInfoA = clientA.JoinGroup (topics, group, protocolName );
1574
1574
Sleep (TDuration::MilliSeconds (200 ));
1575
- auto readInfoB = clientB.JoinGroup (topics, group);
1575
+ auto readInfoB = clientB.JoinGroup (topics, group, protocolName );
1576
1576
Sleep (TDuration::MilliSeconds (200 ));
1577
1577
1578
1578
UNIT_ASSERT_VALUES_EQUAL (clientA.LeaveGroup (readInfoA->MemberId .value (), group)->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
@@ -1584,7 +1584,7 @@ Y_UNIT_TEST(ProduceScenario) {
1584
1584
std::vector<TString> topics;
1585
1585
topics.push_back (shortTopicName);
1586
1586
1587
- auto joinResponse = clientA.JoinGroup (topics, group);
1587
+ auto joinResponse = clientA.JoinGroup (topics, group, protocolName );
1588
1588
UNIT_ASSERT_VALUES_EQUAL (joinResponse->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1589
1589
UNIT_ASSERT_VALUES_EQUAL (clientA.LeaveGroup (joinResponse->MemberId .value (), group)->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1590
1590
}
@@ -1594,7 +1594,7 @@ Y_UNIT_TEST(ProduceScenario) {
1594
1594
std::vector<TString> topics;
1595
1595
topics.push_back (topicName);
1596
1596
1597
- auto joinResponse = clientA.JoinGroup (topics, notExistsGroup);
1597
+ auto joinResponse = clientA.JoinGroup (topics, notExistsGroup, protocolName );
1598
1598
UNIT_ASSERT_VALUES_EQUAL (joinResponse->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::INVALID_REQUEST)); // because TReadInitAndAuthActor returns BAD_REQUEST on failed readRule check
1599
1599
}
1600
1600
@@ -1603,7 +1603,7 @@ Y_UNIT_TEST(ProduceScenario) {
1603
1603
std::vector<TString> topics;
1604
1604
topics.push_back (notExistsTopicName);
1605
1605
1606
- auto joinResponse = clientA.JoinGroup (topics, group);
1606
+ auto joinResponse = clientA.JoinGroup (topics, group, protocolName );
1607
1607
UNIT_ASSERT_VALUES_EQUAL (joinResponse->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::UNKNOWN_TOPIC_OR_PARTITION));
1608
1608
}
1609
1609
@@ -1624,7 +1624,7 @@ Y_UNIT_TEST(ProduceScenario) {
1624
1624
1625
1625
// Check change topics list
1626
1626
topics.pop_back ();
1627
- auto joinResponse = clientA.JoinGroup (topics, group);
1627
+ auto joinResponse = clientA.JoinGroup (topics, group, protocolName );
1628
1628
UNIT_ASSERT_VALUES_EQUAL (joinResponse->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::REBALANCE_IN_PROGRESS)); // tell client to rejoin
1629
1629
}
1630
1630
0 commit comments