-
Notifications
You must be signed in to change notification settings - Fork 825
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
Remove query consistency level from request #452
Remove query consistency level from request #452
Conversation
if request.GetRequest().GetQueryConsistencyLevel() == enumspb.QUERY_CONSISTENCY_LEVEL_STRONG && !consistentQueryEnabled { | ||
return nil, ErrConsistentQueryNotEnabled | ||
} | ||
queryConsistencyLevel := enumspb.QUERY_CONSISTENCY_LEVEL_STRONG |
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.
Left this as never change local var here in case if we decide to bring it back one day.
}, | ||
} | ||
resp, err := s.mockHistoryEngine.QueryWorkflow(context.Background(), request) | ||
s.Equal(ErrQueryWorkflowBeforeFirstDecision, err) |
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 error was returned only from eventual consistency block.
di = addDecisionTaskScheduledEvent(msBuilder) | ||
addDecisionTaskStartedEvent(msBuilder, di.ScheduleID, tasklist, identity) |
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.
Only completed workflows can be queried directly through matching now.
What changed?
QueryConsistencyLevel
field was removed fromQueryWorkflow
request and dynamic config with default valueSTRONG
.Why?
EVENTUAL
consistency is not supported any more.How did you test it?
Run all tests.
Potential risks
No tests.