mirror of https://github.com/apache/kafka.git
Cleanup hasMemberSubscriptionChanged. Remove unused InvalidRegularExpressionException from the signature. Reviewers: Sean Quah <squah@confluent.io>, Chia-Ping Tsai <chia7712@gmail.com>, TengYao Chi <frankvicky@apache.org>
This commit is contained in:
parent
53faeb85ef
commit
202e216a60
|
@ -27,7 +27,6 @@ import org.apache.kafka.common.errors.GroupIdNotFoundException;
|
|||
import org.apache.kafka.common.errors.GroupMaxSizeReachedException;
|
||||
import org.apache.kafka.common.errors.IllegalGenerationException;
|
||||
import org.apache.kafka.common.errors.InconsistentGroupProtocolException;
|
||||
import org.apache.kafka.common.errors.InvalidRegularExpression;
|
||||
import org.apache.kafka.common.errors.InvalidRequestException;
|
||||
import org.apache.kafka.common.errors.RebalanceInProgressException;
|
||||
import org.apache.kafka.common.errors.UnknownMemberIdException;
|
||||
|
@ -3036,14 +3035,13 @@ public class GroupMetadataManager {
|
|||
* @param records The list to accumulate any new records.
|
||||
* @return A boolean indicating whether the updatedMember has a different
|
||||
* subscribedTopicNames from the old member.
|
||||
* @throws InvalidRegularExpression if the regular expression is invalid.
|
||||
*/
|
||||
private boolean hasMemberSubscriptionChanged(
|
||||
String groupId,
|
||||
ConsumerGroupMember member,
|
||||
ConsumerGroupMember updatedMember,
|
||||
List<CoordinatorRecord> records
|
||||
) throws InvalidRegularExpression {
|
||||
) {
|
||||
String memberId = updatedMember.memberId();
|
||||
if (!updatedMember.equals(member)) {
|
||||
records.add(newConsumerGroupMemberSubscriptionRecord(groupId, updatedMember));
|
||||
|
|
Loading…
Reference in New Issue