temporalio / temporalio/temporal

SecondaryVisbilityStore validation failed

Open
#5,489 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

potential-bug
Dominant language
Go
Stars
23.2k
Forks
1.9k
Avg merge
2d 8h
Merged PRs (30d)
228

Description

Expected Behavior

I want to migrate the visibility store from ES to Postgres using Dual Visibility Store feature. Expected behavior to be able to dual write to both ES and Postgres. Temporal config:

  visibilityStore: es-visibility
  secondaryVisibilityStore: pg-visibility
  datastores:
    pg-visibility:
      SQL:
    es-visibility:
      elasticsearch:

Actual Behavior

Upon starting the server, I got the following error persistence config: cannot set secondaryVisibilityStore when visibilityStore is setting elasticsearch datastore

Steps to Reproduce the Problem

  1. Setup the config as above
  2. Start temporal server

Specifications

  • Version: 1.22.3
  • Platform: Linux

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Temporal 1.22.3 configuration on Linux and locate the validation that emits "cannot set secondaryVisibilityStore when visibilityStore is setting elasticsearch datastore." Trace the visibility-store configuration path and confirm that the ES primary and PostgreSQL secondary configuration can be accepted; done means the server starts with the shown dual-store setup and can dual-write.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, go, postgresql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.