@@ -1483,7 +1483,7 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
1483
1483
// clientB join group, and get 0 partitions, becouse it's all at clientA
1484
1484
UNIT_ASSERT_VALUES_EQUAL (clientB.SaslHandshake ()->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1485
1485
UNIT_ASSERT_VALUES_EQUAL (clientB.SaslAuthenticate (" ouruser@/Root" , " ourUserPassword" )->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1486
- auto readInfoB = clientB.JoinAndSyncGroup (topics, group);
1486
+ auto readInfoB = clientB.JoinAndSyncGroup (topics, group, protocolName, 1000000 , minActivePartitions );
1487
1487
UNIT_ASSERT_VALUES_EQUAL (readInfoB.Partitions .size (), 0 );
1488
1488
1489
1489
// clientA gets RABALANCE status, because of new reader. We need to release some partitions for new client
@@ -1503,7 +1503,7 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
1503
1503
// clientC join group, and get 0 partitions, becouse it's all at clientA and clientB
1504
1504
UNIT_ASSERT_VALUES_EQUAL (clientC.SaslHandshake ()->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1505
1505
UNIT_ASSERT_VALUES_EQUAL (clientC.SaslAuthenticate (" ouruser@/Root" , " ourUserPassword" )->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1506
- auto readInfoC = clientC.JoinAndSyncGroup (topics, group);
1506
+ auto readInfoC = clientC.JoinAndSyncGroup (topics, group, protocolName, 1000000 , minActivePartitions );
1507
1507
UNIT_ASSERT_VALUES_EQUAL (readInfoC.Partitions .size (), 0 );
1508
1508
1509
1509
// all clients gets RABALANCE status, because of new reader. We need to release some partitions for new client
@@ -1525,7 +1525,7 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
1525
1525
// clientD join group, and get 0 partitions, becouse it's all at clientA, clientB and clientC
1526
1526
UNIT_ASSERT_VALUES_EQUAL (clientD.SaslHandshake ()->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1527
1527
UNIT_ASSERT_VALUES_EQUAL (clientD.SaslAuthenticate (" ouruser@/Root" , " ourUserPassword" )->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1528
- auto readInfoD = clientD.JoinAndSyncGroup (topics, group);
1528
+ auto readInfoD = clientD.JoinAndSyncGroup (topics, group, protocolName, 1000000 , minActivePartitions );
1529
1529
UNIT_ASSERT_VALUES_EQUAL (readInfoD.Partitions .size (), 0 );
1530
1530
1531
1531
// all clients gets RABALANCE status, because of new reader. We need to release some partitions
@@ -1581,9 +1581,9 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
1581
1581
std::vector<TString> topics;
1582
1582
topics.push_back (topicName);
1583
1583
1584
- auto readInfoA = clientA.JoinGroup (topics, group);
1584
+ auto readInfoA = clientA.JoinGroup (topics, group, protocolName );
1585
1585
Sleep (TDuration::MilliSeconds (200 ));
1586
- auto readInfoB = clientB.JoinGroup (topics, group);
1586
+ auto readInfoB = clientB.JoinGroup (topics, group, protocolName );
1587
1587
Sleep (TDuration::MilliSeconds (200 ));
1588
1588
1589
1589
UNIT_ASSERT_VALUES_EQUAL (clientA.LeaveGroup (readInfoA->MemberId .value (), group)->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
@@ -1595,7 +1595,7 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
1595
1595
std::vector<TString> topics;
1596
1596
topics.push_back (shortTopicName);
1597
1597
1598
- auto joinResponse = clientA.JoinGroup (topics, group);
1598
+ auto joinResponse = clientA.JoinGroup (topics, group, protocolName );
1599
1599
UNIT_ASSERT_VALUES_EQUAL (joinResponse->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1600
1600
UNIT_ASSERT_VALUES_EQUAL (clientA.LeaveGroup (joinResponse->MemberId .value (), group)->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::NONE_ERROR));
1601
1601
}
@@ -1605,7 +1605,7 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
1605
1605
std::vector<TString> topics;
1606
1606
topics.push_back (topicName);
1607
1607
1608
- auto joinResponse = clientA.JoinGroup (topics, notExistsGroup);
1608
+ auto joinResponse = clientA.JoinGroup (topics, notExistsGroup, protocolName );
1609
1609
UNIT_ASSERT_VALUES_EQUAL (joinResponse->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::GROUP_ID_NOT_FOUND));
1610
1610
}
1611
1611
@@ -1614,7 +1614,7 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
1614
1614
std::vector<TString> topics;
1615
1615
topics.push_back (notExistsTopicName);
1616
1616
1617
- auto joinResponse = clientA.JoinGroup (topics, group);
1617
+ auto joinResponse = clientA.JoinGroup (topics, group, protocolName );
1618
1618
UNIT_ASSERT_VALUES_EQUAL (joinResponse->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::UNKNOWN_TOPIC_OR_PARTITION));
1619
1619
}
1620
1620
@@ -1635,7 +1635,7 @@ Y_UNIT_TEST_SUITE(KafkaProtocol) {
1635
1635
1636
1636
// Check change topics list
1637
1637
topics.pop_back ();
1638
- auto joinResponse = clientA.JoinGroup (topics, group);
1638
+ auto joinResponse = clientA.JoinGroup (topics, group, protocolName );
1639
1639
UNIT_ASSERT_VALUES_EQUAL (joinResponse->ErrorCode , static_cast <TKafkaInt16>(EKafkaErrors::REBALANCE_IN_PROGRESS)); // tell client to rejoin
1640
1640
}
1641
1641
0 commit comments