-
Notifications
You must be signed in to change notification settings - Fork 41
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
Unable to add a search attribute to a fresh dev server #206
Comments
The server throwing error "search attribute already exists" (though still adding the attribute) was fixed recently on the server side temporalio/temporal#4148 Keeping the issue open until this is out |
The 10 seconds delay is currently by design with SQLite backend. There may be changes in future, at this point would suggest just working around this from the tests |
Thank you for the reference, I'll be waiting for the next release.
Is there a chance to avoid this delay in a special case of adding search attributes at the very start of the dev server (as described in #21)? |
The delay isn't by design, it's a bug that was introduced in server 1.20. |
+1 for adding support for #21 |
Thanks for clarifying If this #21 works for your e2e tests let's then continue there in the thread (and not wait for temporalio/temporal#4017 resolution) |
What are you really trying to do?
During my e2e-tests I run
ya tool temporal server start-dev
, and once the server is online I try to add a custom search attribute to it using Operator service API or CLI.Describe the bug
Adding a search attribute ends with an error
unable to add search attributes: Search attribute ... already exists
, the server logs a panic: https://gist.github.com/aromanovich/7736838748d6b10c2ba9b9694ee321d9. Despite all that the attribute gets added, but doesn't become available immediately.All attempts to execute a workflow with the new search attribute fail with
Namespace ... has no mapping defined for search attribute ...
for around 10 seconds, and only then succeed.Minimal Reproduction
The output: https://gist.github.com/aromanovich/61400dad2b2a1365011e22e10fb231a2
Environment/Versions
The text was updated successfully, but these errors were encountered: