Repository navigation
fix(plm): 用例清单对齐可执行 gtest 11 条 - #1
Open
LinJieXiao-XLJ wants to merge 12 commits into
Open
LinJieXiao-XLJ wants to merge 12 commits into
LinJieXiao-XLJ wants to merge 12 commits into
Conversation
- 新增 start.sh、用例映射与 gtest XML 后处理 - 测试连接参数改为 IOTDB_HOST/PORT/USER/PASSWORD,默认 root/TimechoDB@2021 - 新增 14 条用例定义(中文名称与功能点路径) Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
K8s 实例会返回集群内部 DNS,执行机无法解析;表/树模型统一关闭 redirection,直接使用平台注入的外部地址。 Co-Authored-By: Claude Code <noreply@anthropic.com>
CMake 已注释 table_insert_test.cpp 与 model_inference_getdouble_test.cpp, defs 中的 3 条不可执行用例会在 PLM 导入后变成「未产出结果」。 按 --gtest_list_tests 删除这 3 条,并补充导入前用例审查文档。 Co-Authored-By: Claude Code <noreply@anthropic.com>
导入 PLM 后回填 TimechoDB-3116 ~ TimechoDB-3126,并写入映射三件套, 供 start.sh case/lookup 按 PLM 编号执行。 Co-Authored-By: Claude Code <noreply@anthropic.com>
K8s 实例只暴露外部连接地址,Session 默认 enableAutoFetch=true 会向服务端 拉取节点列表并拿到 DataNode 的 *.svc.cluster.local,执行机无法解析, 表现为 “Could not resolve host for client socket”。 在 plmTableBuilder/plmTreeSession 中同时关闭 enableAutoFetch 与 enableRedirections,只连接平台注入的 IOTDB_HOST/IOTDB_PORT。 Co-Authored-By: Claude Code <noreply@anthropic.com>
- 建库前清理同名库,304(DDL 在途)重试,避免上一轮残留导致 501/304; - 绑定 database 的会话先用独立会话建库,避免 701 database is not specified; - show databases 只校验目标库存在,不再要求实例上只有目标库; - 树模型查询前清理 root.** 残留数据。 Co-Authored-By: Claude Code <noreply@anthropic.com>
drop database 返回成功后服务端 DDL 仍可能在途,紧随其后的 create database 会返回 304。对 create database 增加 304 重试, 与已有的 drop 重试配套,保证连续执行同一批会话用例时不再偶发失败。 Co-Authored-By: Claude Code <noreply@anthropic.com>
连续执行同一批会话用例时,服务端 DDL 在途会让紧随其后的 use/create table 返回 304。把 drop/create/use/create table 统一收敛到 executeWithRetry, 避免只在 create database 一处重试。 Co-Authored-By: Claude Code <noreply@anthropic.com>
Co-Authored-By: Claude Code <noreply@anthropic.com>
K8s 单入口实例默认关闭;PVE 多节点(1C2D/1C4D)下客户端连首个 DataNode, 服务端重定向到其它 DataNode 的可达 IP,通过 PLM_ENABLE_REDIRECTIONS=true 开启以验证重定向。 Co-Authored-By: Claude Code <noreply@anthropic.com>
多节点拓扑(1C2D/1C4D)下客户端连首个 DataNode,服务端重定向到其它 DataNode 的可达 IP;单入口场景可用 PLM_ENABLE_REDIRECTIONS=false 关闭。 Co-Authored-By: Claude Code <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更
./main --gtest_list_tests将.plm-case-defs.json从 14 条修正为 11 条。InsertTest1 条、ModelInferenceGetDoubleTest2 条。docs/plm-case-review.md,逐条列出 11 条用例的测试目标、PLM 用例名、功能点和代码行为说明,供导入前审查。背景
test/CMakeLists.txt注释了table_insert_test.cpp与model_inference_getdouble_test.cpp,二进制中不存在这 3 条测试;若继续导入,PLM 执行时会变成「未产出结果」。验证
--gtest_list_tests:11 条。🤖 Generated with Claude Code