[Bug] Temporal dev server does not seem to respect archival settings for namespaces
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先使用所示的归档标志,通过 temporal server start-dev 以及 temporal operator namespace create、update 和 list 命令复现该问题。将开发服务器的 namespace 结果与本地 Docker Compose 服务器的结果进行比较。当启动、创建和更新时传入的归档设置都已持久化,并被报告为已启用时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
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:
- when passing the default setting values at the start
- when passing them during the creation of a namespace
- 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.
- 主要语言
- Go
- 星标
- 390
- 派生
- 123
- 平均合并
- 2 天 9 小时
- 30 天内合并 PR
- 13
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
temporalio/cli 的其他 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 70/100
temporalio/cli#776 ·
维护者通常 1 天内回复
-
[Feature Request] Option to disable metrics in server start-dev可能已有人在做 @shafiktanbir 于 11 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 67/100
temporalio/cli#1274 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 58/100
temporalio/cli#1249 · 1 条评论 ·
维护者通常 1 天内回复
-
[Feature Request] Decode workflow histories concurrently with remote codec servers可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 65/100
temporalio/cli#1193 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 38/100
temporalio/cli#1178 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
tech-debt
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
seriousm4x/UpSnap#1786 ·
-
enhancement security
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug feedback ui/ux
难度 2/5 1-3 小时 新手友好度 67/100
peasant-labs/peasant#1307 ·
维护者通常 1 天内回复