撑伞接落花
2026 年7 月 27 日 09:33
#1
【 使用环境 】 测试环境
【 OB or 其他组件 】ocp
【 使用版本 】4.4.0
【问题描述】 obproxy 集群信息 显示异常、空白
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
【SOP系列 22 】——故障诊断第一步(自助诊断和诊断信息收集)
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手 ] 即可召唤小助手,欢迎试用!
{duration: 39,…}
duration: 39
error: {debugMessage: "java.lang.NullPointerException: element cannot be mapped to a null key",…}
debugMessage: "java.lang.NullPointerException: element cannot be mapped to a null key"
message: "Unhandled exception, type=RuntimeException, message=java.lang.NullPointerException: element cannot be mapped to a null key"
server: "07b31cf330"
status: 500
successful: false
timestamp: "2026-07-27T09:32:22.660173968+08:00"
traceId: "54e548196261faca"
1 个赞
撑伞接落花
2026 年7 月 27 日 09:37
#4
[root@catltlvsdrapp01 logs]# grep e64a5a5655515534 ocp-server.log
2026-07-27 09:35:45.047 INFO 4144749 --- [http-nio-0.0.0.0-8080-exec-8,e64a5a5655515534,a03e198045eac9d6] c.o.o.s.c.trace.RequestTracingAspect : API: [GET /api/v2/obproxy/clusters
?page=1&size=10, client=10.35.162.46, traceId=e64a5a5655515534, method=PaginatedResponse com.oceanbase.ocp.server.common.controller.ObproxyController.listObproxyClusters(Pageable,List,
String,List,Boolean), args=Page request [number: 0, size 10, sort: id: ASC],false,]
2026-07-27 09:35:45.080 ERROR 4144749 --- [http-nio-0.0.0.0-8080-exec-8,e64a5a5655515534,a03e198045eac9d6] c.o.o.o.internal.ObproxyServiceImpl : Attach cluster stats error, cluste
rId= 6
2026-07-27 09:35:45.081 ERROR 4144749 --- [http-nio-0.0.0.0-8080-exec-8,e64a5a5655515534,a03e198045eac9d6] c.o.o.s.c.trace.RequestTracingAspect : Unexpected API Error: [GET /api/v2
/obproxy/clusters client=10.35.162.46, traceId=e64a5a5655515534, args=Page request [number: 0, size 10, sort: id: ASC],false,, duration=36 ms]
2026-07-27 09:35:45.082 ERROR 4144749 --- [http-nio-0.0.0.0-8080-exec-8,e64a5a5655515534,a03e198045eac9d6] c.o.o.s.c.e.RestExceptionHandler : Unhandled exception, uri=/api/v2/o
bproxy/clusters, duration=37
Attach cluster stats error, clusterId= 6 , 这个报错了
淇铭
2026 年7 月 27 日 10:20
#5
meta DB查一下信息
SELECT id, obproxy_cluster_id, ip, status
FROM obproxy_server
WHERE obproxy_cluster_id = 6;
SELECT id, obproxy_cluster_id, ip, status
FROM obproxy_server
WHERE status IS NULL;
1 个赞
淇铭
2026 年7 月 27 日 10:36
#8
把这个数据更新一下 看看
UPDATE obproxy_server
SET status = ‘RUNNING’ – 若实际已挂掉则用 ‘UNAVAILABLE’ / ‘STOPPED’
WHERE id = 10;
你是做了 什么操作么?导致的状态有问题 大概说一下
撑伞接落花
2026 年7 月 27 日 10:40
#9
odp 有一台主机意外重启了,我在ocp 执行 Restart obproxy ,在 Restart obproxy process 报错了,我就把这个任务回滚了,回滚成功了,然后odp 集群 就 看不到信息了。
淇铭
2026 年7 月 27 日 11:04
#10
你修改了么?这个信息 在查一下
SELECT id, name, status FROM obproxy_cluster WHERE id = 6;