[Bug] Temporal dev server does not seem to respect archival settings for namespaces

Offen
#312 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
go
Bereich
backend, cli

Rechercherichtung

Beginne damit, das Problem mit temporal server start-dev und den Befehlen temporal operator namespace create, update und list unter Verwendung der gezeigten Archivierungs-Flags zu reproduzieren. Vergleiche die Namespace-Ergebnisse des Dev-Servers mit denen des lokalen Docker Compose-Servers. Als erledigt gilt die Aufgabe, wenn die beim Start, bei der Erstellung und bei der Aktualisierung übergebenen Archivierungseinstellungen gespeichert und als aktiviert gemeldet werden.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug
What are you really trying to do?

I am trying to play with archival settings on the dev server (formerly known as temporalite), to get a feel for it and figure if I need to develop a custom provider or not.

Describe the bug

The archival enablement settings from the command line do not seem to be respected by the temporal dev server:

  1. when passing the default setting values at the start
  2. when passing them during the creation of a namespace
  3. when updating an existing namespace
Minimal Reproduction

1- Passing default settings on the start command line:

# in one terminal
./temporal server start-dev --dynamic-config-value Config.HistoryArchivalState="true"  --dynamic-config-value Config.VisibilityArchivalState="true" --db-filename temporal.dev.sqlite

# in the other terminal
./temporal operator namespace list
  NamespaceInfo.Name                    temporal-system
../..

  NamespaceInfo.Name                    default
  NamespaceInfo.Id                      c86d0df8-3ff7-4715-b718-3f12f1c1516c
  NamespaceInfo.Description
  NamespaceInfo.OwnerEmail
  NamespaceInfo.State                   Registered
  Config.WorkflowExecutionRetentionTtl  24h0m0s
  ReplicationConfig.ActiveClusterName   active
  ReplicationConfig.Clusters            [&ClusterReplicationConfig{ClusterName:active,}]
  Config.HistoryArchivalState           Disabled
  Config.VisibilityArchivalState        Disabled
  IsGlobalNamespace                     false
  FailoverVersion                                                                      0
  FailoverHistory                       []

2- Passing archival settings during the creation of a namespace

# create 
./temporal operator namespace create --history-archival-state enabled --retention 15 --visibility-archival-state enabled  tomato
Namespace tomato successfully registered.

# verify
./temporal operator namespace list
  ../..
  NamespaceInfo.Name                    tomato
  NamespaceInfo.Id                      f93d576d-e6f8-4ed3-b3c1-cf43cd3fdc6b
  NamespaceInfo.Description
  NamespaceInfo.OwnerEmail
  NamespaceInfo.State                   Registered
  Config.WorkflowExecutionRetentionTtl  360h0m0s
  ReplicationConfig.ActiveClusterName   active
  ReplicationConfig.Clusters            [&ClusterReplicationConfig{ClusterName:active,}]
  Config.HistoryArchivalState           Disabled
  Config.VisibilityArchivalState        Disabled
  IsGlobalNamespace                     false
  FailoverVersion                                                                      0
  FailoverHistory                       []

3- Passing archival settings when updating an existing namespace

# run an update after case 2
./temporal operator namespace update --history-archival-state enabled --history-archival-state enabled --retention 10 tomato
Namespace tomato update succeeded.

# verify that the retention update worked, but the archival did not:
./temporal operator namespace list

../..
  NamespaceInfo.Name                    tomato
  NamespaceInfo.Id                      f93d576d-e6f8-4ed3-b3c1-cf43cd3fdc6b
  NamespaceInfo.Description
  NamespaceInfo.OwnerEmail
  NamespaceInfo.State                   Registered
  Config.WorkflowExecutionRetentionTtl  240h0m0s
  ReplicationConfig.ActiveClusterName   active
  ReplicationConfig.Clusters            [&ClusterReplicationConfig{ClusterName:active,}]
  Config.HistoryArchivalState           Disabled
  Config.VisibilityArchivalState        Disabled
  IsGlobalNamespace                     false
  FailoverVersion                                                                      0
  FailoverHistory                       []

Environment/Versions
  • OS and processor: M1 Mac
  • Temporal Version: temporalite built from tip of live version: d128e0c04389219b9aa032bf63a0889c965ba535
  • Are you using Docker or Kubernetes or building Temporal from source? built from source.
Additional context

When I trace the CLI in the debugger, I can see that the command line parameters for the namespace creation are properly passed into the namespace creation request. I was not sure how to set up tooling to decode the proto in the sqlite file to see what's in there. When I trace the data on the way out, the settings have not been respected.

When I try the same namespace creation against a docker compose version of temporal running locally, the archival settings are respected.

Vorherrschende Sprache
Go
Sterne
390
Forks
123
Ø Merge
2 T. 9 Std.
Gemergte PRs (30 T.)
13

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus temporalio/cli

Alle Issues in temporalio/cli

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.