Skip to content

fix(frontend): return error when creating duplicate search attributes#8928

Closed
DEVMANISHOFFL wants to merge 1 commit into
temporalio:mainfrom
DEVMANISHOFFL:fix-duplicate-search-attributes
Closed

fix(frontend): return error when creating duplicate search attributes#8928
DEVMANISHOFFL wants to merge 1 commit into
temporalio:mainfrom
DEVMANISHOFFL:fix-duplicate-search-attributes

Conversation

@DEVMANISHOFFL
Copy link
Copy Markdown

@DEVMANISHOFFL DEVMANISHOFFL commented Jan 3, 2026

What changed?

Updated AddSearchAttributes in operator_handler.go for both Elasticsearch and SQL paths, to return a serviceerror.NewAlreadyExists error immediately when a duplicate attribute is detected, inplace of just logging a warning and returning success....

Why?

Previously, the CLI would report "Search attributes have been added" even if the operation was skipped because the attribute existed. This silent failure caused confusion and made it difficult to detect configuration drift in CI/CD pipelines.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

@DEVMANISHOFFL DEVMANISHOFFL requested review from a team as code owners January 3, 2026 19:55
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 3, 2026

CLA assistant check
All committers have signed the CLA.

@rodrigozhou
Copy link
Copy Markdown
Contributor

This looks like a duplicate PR of #8934
Closing this PR.

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.

3 participants