-
Notifications
You must be signed in to change notification settings - Fork 59
Fix for issue #73 #74
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
Conversation
Feel free to test out |
cc @acornies @jonatasbaldin please take a look at the changes mostly from @bmcstdio with some additional missing error handling (which may be historical). I'm curious why we didn't run into this earlier, perhaps the image wasn't updated since we accepted the changes? |
main.go
Outdated
|
||
natsQueue := NATSQueue{ | ||
clusterID: config.NatsClusterName, | ||
clusterID: "faas-cluster", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regression?
Due to an issue described in #73 by @bmcstdio the error handling has been improved to prevent nil pointer dereference errors in several scenarios. Improves error messages for queue-worker output. Tested with and without gateway_invoke by changing the gateway port to an invalid one and the gateway address to an invalid one. Closes: #73 Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
becc587
to
9470845
Compare
Squashed / rebased. Latest image is: Anyone affected by this can revert to an earlier version of the queue-worker. Before #67 was merged or try the pre-release image from above. |
@alexellis |
Thanks Bruno. I'll kick off a release, can you update helm please? |
Description
Fixes issue found in #73 via @bmcstdio
How Has This Been Tested?
faas_gateway_address
such asgateway.openfaas.svc.cluster.local:9090
- at runtime:8080
will be appended and this will now fail to post but not cause a panicfaas_gateway_port
and the code will panic on start-up and log out the errorTypes of changes
Checklist:
git commit -s