-
Notifications
You must be signed in to change notification settings - Fork 748
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
fix: Use different clientID for each EventBus reconnection. Fixes #1055 #1061
Conversation
…proj#1055 Signed-off-by: Derek Wang <[email protected]>
@@ -47,7 +47,7 @@ ENTRYPOINT [ "/bin/eventsource" ] | |||
#################################################################################################### | |||
# sensor | |||
#################################################################################################### | |||
FROM alpine as sensor | |||
FROM alpine:3.12.3 as sensor |
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.
The latest alpine
release (v3.13.x) has DNS resolving issue, pin to 3.12.3
.
Signed-off-by: Derek Wang <[email protected]>
Signed-off-by: Derek Wang <[email protected]>
@@ -382,3 +391,10 @@ func (e *EventSourceAdaptor) Start(ctx context.Context) error { | |||
} | |||
} | |||
} | |||
|
|||
func generateClientID(hostname string) string { | |||
s1 := rand.NewSource(time.Now().UnixNano()) |
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.
rather than using rand, what about using an RFC compliant UUID?
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.
…oproj#1055 (argoproj#1061) * fix: Use differet clientID for each EventBus reconnection. Fixes argoproj#1055 Signed-off-by: Derek Wang <[email protected]> * comment Signed-off-by: Derek Wang <[email protected]> * tiny Signed-off-by: Derek Wang <[email protected]>
Signed-off-by: Derek Wang [email protected]
Checklist: