temporalio/temporal · error
ErrUnableToGetSearchAttributes
ErrUnableToGetSearchAttributes
Error message
%w: %v
What it means
Error "%w: %v" thrown in temporalio/temporal.
Source
Thrown at service/worker/addsearchattributes/workflow.go:169
if a.esClient == nil {
a.logger.Info("Elasticsearch client is not configured. Skipping Elasticsearch status check.")
return nil
}
status, err := a.esClient.WaitForYellowStatus(ctx, indexName)
if err != nil {
a.logger.Error("Unable to get Elasticsearch cluster status.", tag.ESIndex(indexName), tag.Error(err))
metrics.AddSearchAttributesFailuresCount.With(a.metricsHandler).Record(1)
return err
}
a.logger.Info("Elasticsearch cluster status.", tag.ESIndex(indexName), tag.ESClusterStatus(status))
return nil
}
func (a *activities) UpdateClusterMetadataActivity(ctx context.Context, params WorkflowParams) error {
oldSearchAttributes, err := a.saManager.GetSearchAttributes(params.IndexName, true)
if err != nil {
return fmt.Errorf("%w: %v", ErrUnableToGetSearchAttributes, err)
}
newCustomSearchAttributes := util.CloneMapNonNil(oldSearchAttributes.Custom())
maps.Copy(newCustomSearchAttributes, params.CustomAttributesToAdd)
err = a.saManager.SaveSearchAttributes(ctx, params.IndexName, newCustomSearchAttributes)
if err != nil {
a.logger.Info("Unable to save search attributes to cluster metadata.", tag.ESIndex(params.IndexName), tag.Error(err))
metrics.AddSearchAttributesFailuresCount.With(a.metricsHandler).Record(1)
return fmt.Errorf("%w: %v", ErrUnableToSaveSearchAttributes, err)
}
a.logger.Info("Search attributes saved to cluster metadata.", tag.ESIndex(params.IndexName))
return nil
}
View on GitHub (pinned to bde624efd1)
When it happens
Trigger: Thrown at service/worker/addsearchattributes/workflow.go:169 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of temporalio/temporal@bde624efd1 (2026-09-01).
Data as JSON: /api/errors/97401575c8392132.
Report an issue: GitHub.