Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] The kafka.NewMConsumerGroup code fails to connect to the Kafka cluster when SASL is configured in Kafka, as the SASL settings are not set in the code. #310

Closed
sdzhu opened this issue Nov 24, 2022 · 3 comments
Assignees
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Milestone

Comments

@sdzhu
Copy link

sdzhu commented Nov 24, 2022

func NewMConsumerGroup(consumerConfig *MConsumerGroupConfig, topics, addrs []string, groupID string) *MConsumerGroup {
config := sarama.NewConfig()
config.Version = consumerConfig.KafkaVersion
config.Consumer.Offsets.Initial = consumerConfig.OffsetsInitial
config.Consumer.Return.Errors = consumerConfig.IsReturnErr
fmt.Println("init address is ", addrs, "topics is ", topics)

      //这里应该要向consumer.go一样,要加入SASL的配置代码


  consumerGroup, err := sarama.NewConsumerGroup(addrs, groupID, config)
  if err != nil {
	  panic(err.Error())
  }
  return &MConsumerGroup{
	  consumerGroup,
	  groupID,
	  topics,
  }

}

@skiffer-git skiffer-git changed the title [BUG] kafka.NewMConsumerGroup 在kafka集群配置了SASL时,没有设置SASL配置的代码,导致kafka连接失败 [BUG] The kafka.NewMConsumerGroup code fails to connect to the Kafka cluster when SASL is configured in Kafka, as the SASL settings are not set in the code. May 19, 2023
@kubbot
Copy link
Member

kubbot commented Jul 19, 2023

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@kubbot kubbot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 19, 2023
@skiffer-git skiffer-git added this to the v3.0 milestone Jul 21, 2023
@kubbot kubbot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 21, 2023
@kubbot
Copy link
Member

kubbot commented Sep 30, 2023

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@kubbot kubbot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 30, 2023
@kubbot
Copy link
Member

kubbot commented Oct 19, 2023

This issue was closed because it has been stalled for 7 days with no activity.

@kubbot kubbot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale.
Projects
None yet
Development

No branches or pull requests

4 participants