Skip to content
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

Fail workflow if search attributes size exceed limit #1439

Merged
merged 2 commits into from Apr 7, 2021

Conversation

alexshtin
Copy link
Member

@alexshtin alexshtin commented Apr 7, 2021

What changed?
Fail workflow if search attributes size exceed limit.

Split single search attributes validator into two:

  1. Validate names and types.
  2. Validate size of each value and total size.

Why?
First validator works as before: it fails workflow task and therefore leads to retries (until Workflow code is fixed or search attribute is registered).
Second validator now fails Workflow right away to prevent server overload due to exceeded size of search attributes values.

How did you test it?
Run existing tests.

Potential risks
Total size limit now include attributes names and metadata size, so if total size was very close to the limit before it might start fail workflow now. Which is very unlikely though, because default total size limit is 40K.

Is hotfix candidate?
No.

@alexshtin alexshtin requested a review from a team April 7, 2021 04:04
@alexshtin alexshtin enabled auto-merge (squash) April 7, 2021 19:44
@alexshtin alexshtin merged commit 6d17915 into temporalio:master Apr 7, 2021
@alexshtin alexshtin deleted the feature/sa-size-fail-wf branch April 7, 2021 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants