We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
If we shutdown the rabbitmq, the wayne worker will print quite a lot of logs such as:
2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:66] delivery not initialized 2019/01/25 14:57:35.718 [C] [workers.go:87] delivery not initialized
To Reproduce Steps to reproduce the behavior:
Expected behavior
As rabbitmq is down, wayne worker should retry to reconnect, and should break this loop:
func processMessage(d *amqp.Delivery, w *BaseMessageWorker) { defer func() { if r := recover(); r != nil { logs.Critical(r) d.Reject(false) } }() var m message.Message err := json.Unmarshal(d.Body, &m) if err != nil { ackOrDie(d, false) return } if err = w.Process(&m); err != nil { logs.Error(err) ackOrDie(d, false) // 认为再次重试也无法处理 } else { ackOrDie(d, false) } }
Screenshots
NA
Desktop (please complete the following information):
Server Version
- Kubernetes version: 1.11.1 - Wayne version: wayne v1.3.1-36-gc5157ca0c
Additional context
The text was updated successfully, but these errors were encountered:
wilhelmguo
Successfully merging a pull request may close this issue.
Describe the bug
If we shutdown the rabbitmq, the wayne worker will print quite a lot of logs such as:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
As rabbitmq is down, wayne worker should retry to reconnect, and should break this loop:
Screenshots
NA
Desktop (please complete the following information):
NA
Server Version
Additional context
The text was updated successfully, but these errors were encountered: