-
Notifications
You must be signed in to change notification settings - Fork 912
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
Allow context disable frontend redirection #4547
Conversation
@@ -42,9 +44,13 @@ import ( | |||
"go.temporal.io/server/common/rpc/interceptor" | |||
) | |||
|
|||
var ( | |||
const ( | |||
dcRedirectionContextHeaderName = "xdc-redirection" |
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.
nit: Define this in common/headers.go
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.
this header will only be used by the redirection interceptor (not a common header)
do you still prefer to move this header definition to common/headers.go
?
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.
ok. I was thinking define all headers in one place. I am fine with either way.
* Add RPC header xdc-redirection, allowing disable DC redirection, default to redirect
* Add RPC header xdc-redirection, allowing disable DC redirection, default to redirect
* Add RPC header xdc-redirection, allowing disable DC redirection, default to redirect
* Add RPC header xdc-redirection, allowing disable DC redirection, default to redirect
What changed?
xdc-redirection
, allowing disable DC redirection, default to redirectWhy?
Useful if caller does not want to be redirected
How did you test it?
UT
Potential risks
N/A
Is hotfix candidate?
N/A