-
Notifications
You must be signed in to change notification settings - Fork 851
Use new IDL package for query consistency level changes #6791
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
Use new IDL package for query consistency level changes #6791
Conversation
@@ -11,6 +11,26 @@ services: | |||
interval: 15s | |||
timeout: 30s | |||
retries: 10 | |||
# Setup schemas for primary and secondary clusters | |||
cadence-schema-setup: | |||
image: ubercadence/server:cdnc-12748 |
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.
do we have this image uploaded?
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.
Damn, forgot to change this one back. Will update!
docker/setup-multiclusters-schema.sh
Outdated
@@ -0,0 +1,102 @@ | |||
#!/bin/bash | |||
|
|||
set -x |
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: set -e usually is worthwhile too, I realise this might be a copy from somewhere else, but lack of that flag is confusing usually
docker/setup-multiclusters-schema.sh
Outdated
timeout=300 # 5 minutes timeout | ||
counter=0 | ||
|
||
while [ $counter -lt $timeout ]; do |
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: generally suggest preferring [[
https://google.github.io/styleguide/shellguide.html#s6.3-tests
doesn't matter overly much though
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.
+1 to Neil's comment, otherwise pretty much lgtm
@@ -11,6 +11,26 @@ services: | |||
interval: 15s | |||
timeout: 30s | |||
retries: 10 | |||
# Setup schemas for primary and secondary clusters |
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.
Thanks for fixing this specific multicluster compose setup. We also have a new replication simulation with to test various scenarios in 2 cluster environment. It would be great to enhance it to validate the new strong consistency APIs. Ref: #7007
What changed?
cadence-idl
has been updated to support specifying QueryConsistencyLevel on theGetWorkflowExecutionHistory
andDescribeWorkflow
rpcs. This PR pulls in those changes and adds support for the new fields to the mapper functions for thrift and proto.Why?
This finishes piping data from a request through to the implementation to support specifying a queryconsistencylevel in the frontend. Client updates are still required for consumers to use the fields.
How did you test it?
Updated unit tests to validate the mapper functions.
To sanity check with integration tests:
Potential risks
Serialization failures on inbound requests on the DescribeWorkflowExecution or GetWorkflowExecutionHistory requests.
Release notes
cadence-frontend
now supports passing a QueryConsistencyLevel to DescribeWorkflowExecution and GetWorkflowExecutionHistory rpcs.Documentation Changes
N/A