多容器POD查看日志和执行命令无法切换容器

  • Choerodon平台版本:0.25.0

  • 运行环境:自主搭建

  • 问题描述:
    部署->资源->Pod详情, 执行命令或查询日志,在Pod中有多个容器时,切换容器后报错

  • 执行的操作:

  1. 发布一个多容器的pod。
  2. 查询容器日志,日志显示后,容器切换的Select框消失。 如果在日志显示前切换容器,容器切换的Select框也会消失,日志不显示
  3. 执行命令, 容器切换的Select框正常,但是切换容器会显示"连接已关闭", 控制台报错。
  • 报错信息(请尽量使用代码块或系统截图的形式展现):
TypeError: Cannot read properties of undefined (reading 'dispose')
    at p (77.85d98.chunk.js:17)
    at t.d.detach (77.85d98.chunk.js:17)
    at O.value (77.85d98.chunk.js:17)
    at uu (chunk-libs.95658.chunk.js:101)
    at jc (chunk-libs.95658.chunk.js:103)
    at p.unstable_runWithPriority (chunk-libs.95658.chunk.js:110)
    at li (chunk-libs.95658.chunk.js:101)
    at Gi (chunk-libs.95658.chunk.js:103)
    at Ql (chunk-libs.95658.chunk.js:101)
    at chunk-libs.95658.chunk.js:101
77.85d98.chunk.js:17 Uncaught TypeError: Cannot read properties of undefined (reading 'dispose')
    at p (77.85d98.chunk.js:17)
    at WebSocket.<anonymous> (77.85d98.chunk.js:17)

DevOps服务和Agent日志看上去都没有问题。切换后显示

2021-10-08 15:37:39.240  INFO 7 --- [nio-8060-exec-3] i.c.d.a.s.impl.AgentCommandServiceImpl   : Send to webSocket: cluster: 155591913582514176, key: cluster:155591913582514176.exec:9cf81210-280a-11ec-93c8-2b81d9d3b1c7, textMessage: {"key":"cluster:155591913582514176.exec:9cf81210-280a-11ec-93c8-2b81d9d3b1c7","type":"kubernetes_exec","payload":"{\"podName\":\"springboot-template-72cec-87df7d569-lrfws\",\"containerName\":\"springb
2021-10-08 15:37:39.248  INFO 7 --- [nio-8060-exec-6] i.c.d.a.ws.AgentExecAndLogSocketHandler  : Connection established from agent. The group is from_agent:cluster:155591913582514176.exec:9cf81210-280a-11ec-93c8-2b81d9d3b1c7 and the processor is agent_exec

界面显示:

istio-proxy@springboot-template-72cec-87df7d569-lrfws:/$ www-data@springboot-template-72cec-87df7d569-lrfws:/opt/app$ 连接已关闭

感觉像是切换后,立刻建立了到第二个容器的连接。然后先前一个连接的关闭影响了第二个连接的状态判断~