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

help, tigger ErrProducerStartFailed #1149

Open
shcw opened this issue Jul 8, 2024 · 1 comment
Open

help, tigger ErrProducerStartFailed #1149

shcw opened this issue Jul 8, 2024 · 1 comment

Comments

@shcw
Copy link

shcw commented Jul 8, 2024

The issue tracker is ONLY used for the go client (feature request of RocketMQ need to follow RIP process). Keep in mind, please check whether there is an existing same report before your raise a new one.

Alternately (especially if your communication is not a bug report), you can send mail to our mailing lists. We welcome any friendly suggestions, bug fixes, collaboration, and other improvements.

Please ensure that your bug report is clear and that it is complete. Otherwise, we may be unable to understand it or to reproduce it, either of which would prevent us from fixing the bug. We strongly recommend the report(bug report or feature request) could include some hints as to the following:

BUG REPORT

  1. Please describe the issue you observed:

    • What did you do (The steps to reproduce)?
      restart server
    • What did you expect to see?
      start normal
    • What did you see instead?
      start common producer error start producer failed
  2. Please tell us about your environment:

    • What is your OS?
      centos7
    • What is your client version?
      github.com/apache/rocketmq-client-go v1.2.4
  3. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):

pConfig := &rocketmq.ProducerConfig{
		ClientConfig: rocketmq.ClientConfig{
			GroupID:    "GID_XXXXXXXXXXXX",
			NameServer: "127.0.0.135:9876",
		},
		//Set to Common Producer as default.
		ProducerModel: rocketmq.OrderlyProducer,
	}

	var err error
	producer, err = rocketmq.NewProducer(pConfig)

	if err != nil {
		fmt.Println("create common producer failed, error:", err)
		os.Exit(1)
	}

	err = producer.Start()
	if err != nil {
		fmt.Println("start common producer error", err)
		os.Exit(1)
	}
@hoverseu
Copy link

Can you supplement the error information you encountered (the error message producer.Start function returned)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants