Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

容器内taosadapter进程挂掉 #26356

Open
Sunbo2017 opened this issue Jul 1, 2024 · 2 comments
Open

容器内taosadapter进程挂掉 #26356

Sunbo2017 opened this issue Jul 1, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Sunbo2017
Copy link

Bug Description
容器内taosadapter进程挂掉,导致websocket连接异常

To Reproduce
Steps to reproduce the behavior:
1.使用golang websocket方式连接tdengine容器
2. 执行批量写入数据一段时间后,websocket异常关闭,��务终止
3. 查看日志有Fatal相关报错,后续所有连接均被拒绝
4. 查看tdengine容器服务正常,exec进入容器内部发现taosadapter进程挂掉,必须重启容器才可以继续使用tdengine

Expected Behavior
不论调用方程序有什么问题,tdengine taosadapter服务应该正常运行

Screenshots
企业微信截图_17198259425448
企业微信截图_17198260417545
企业微信截图_17198325404198

Environment (please complete the following information):

  • OS: ubuntu20.04
  • Memory, CPU, current Disk Space
  • TDengine Version 镜像版本3.3.2.0

Additional Context
golang连接tdengin采用websocket方式
写入数据采用参数绑定形式批量写入

@Sunbo2017 Sunbo2017 added the bug Something isn't working label Jul 1, 2024
@yu285 yu285 self-assigned this Jul 4, 2024
@yu285
Copy link
Contributor

yu285 commented Jul 4, 2024

收到 我们看下

@Sunbo2017
Copy link
Author

Sunbo2017 commented Jul 4, 2024

经过排查发现是因为个人疏忽设置行数时用了个比实际数据多的数字,也就是设置的行数和实际的数据条数不匹配,会导致taosadapter进程挂掉,这里应该返回异常错误而不是进程异常终止,后来将行数和实际数据条数改为一致不再出现该问题
f4222c8a899816ff6f84897e1d56df8
86c66d8324f78a2e721e18f2db20c8e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants