hhyo / hhyo/Archery

Doris Engine server_version 解析错误导致 ValueError #3135 这个修复不够彻底

Open Beginner friendly
#3,207 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7k
Forks
1.9k
Avg merge
2d 11h
Merged PRs (30d)
6

Description

### 重现步骤

如果公有云产品,版本是tencent-cdw-doris-3.0.9-f635ac3-2604131,

症状
在生产环境中访问,会报ValueError: invalid literal for int() with base 10: 'cdw'。

### 预期外的结果

Image

archery | [2026-06-20 13:03:52,867][MainThread:140279866607424][task_id:default][query.py:187][ERROR]- 查询异常报错,查询语句:select * from f_bill_fee limit 100;
archery | ,错误信息:Traceback (most recent call last):
archery | File "/opt/archery/sql/query.py", line 102, in query
archery | seconds_behind_master = query_engine.seconds_behind_master
archery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
archery | File "/opt/archery/sql/engines/mysql.py", line 119, in seconds_behind_master
archery | server_version = self.server_version
archery | ^^^^^^^^^^^^^^^^^^^
archery | File "/opt/archery/sql/engines/doris.py", line 54, in server_version
archery | return tuple([int(n) for n in version_numbers.split(".")[:3]])
archery | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
archery | File "/opt/archery/sql/engines/doris.py", line 54, in
archery | return tuple([int(n) for n in version_numbers.split(".")[:3]])
archery | ^^^^^^
archery | ValueError: invalid literal for int() with base 10: 'cdw'

### 日志文本

```shell

```

### 版本

1.14.0

### 部署方式

Docker

### 是否还有其他可以辅助定位问题的信息?比如数据库版本等

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with archery/sql/engines/doris.py at the server_version property around line 54, then trace its use from archery/sql/engines/mysql.py and sql/query.py. Reproduce the reported failure with version tencent-cdw-doris-3.0.9-f635ac3-2604131 and verify that the query no longer raises ValueError when reading the server version.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.