Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
tool
/
xxl-job
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fec37e3c
authored
Apr 05, 2026
by
xuxueli
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
执行器注册表调整,主键调整为long数据类型,防止大规模执行器集群注册数据溢出;
1 parent
735a7825
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
10 deletions
doc/XXL-JOB官方文档.md
doc/db/tables_xxl_job.sql
xxl-job-admin/src/main/java/com/xxl/job/admin/model/XxlJobRegistry.java
doc/XXL-JOB官方文档.md
View file @
fec37e3
...
...
@@ -2811,16 +2811,21 @@ public void execute() {
- 10、【优化】代码重构优化:I18N国际化、属性加载、报表SQL等逻辑重构,合并PR-2888、PR-3006、PR-3027、PR-3198、PR-3285;
- 11、【优化】告警组件初始化重构,提升代码可维护性,合并PR-2903;
- 12、【优化】一致性哈希路由算法优化,重构哈希环逻辑提升代码简洁性;
- 13、【优化】执行器名称长度上限调整,最长支持64字符;
- 13、【优化】执行器名称长度调整,最长支持64字符;
- 14、【优化】执行器注册表调整,主键调整为long数据类型,防止大规模执行器集群注册数据溢出;
数据库升级脚本:
```
-- 添加索引:任务日志表
create index I_jobgroup on xxl_job_log (job_group);
-- 修改字段长度:执行器
名称
-- 修改字段长度:执行器
表
alter table xxl_job_group
modify title varchar(64) not null comment '执行器名称';
-- 修改自增ID类型:执行器注册表
alter table xxl_job_registry
modify id bigint(20) NOT NULL AUTO_INCREMENT;
```
### 7.45 版本 v3.4.1 Release Notes[ING]
...
...
doc/db/tables_xxl_job.sql
View file @
fec37e3
...
...
@@ -23,11 +23,11 @@ CREATE TABLE `xxl_job_group`
CREATE
TABLE
`xxl_job_registry`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`registry_group`
varchar
(
50
)
NOT
NULL
,
`registry_key`
varchar
(
255
)
NOT
NULL
,
`registry_value`
varchar
(
255
)
NOT
NULL
,
`update_time`
datetime
DEFAULT
NULL
,
`id`
bigint
(
20
)
NOT
NULL
AUTO_INCREMENT
,
`registry_group`
varchar
(
50
)
NOT
NULL
,
`registry_key`
varchar
(
255
)
NOT
NULL
,
`registry_value`
varchar
(
255
)
NOT
NULL
,
`update_time`
datetime
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`i_g_k_v`
(
`registry_group`
,
`registry_key`
,
`registry_value`
)
USING
BTREE
)
ENGINE
=
InnoDB
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/model/XxlJobRegistry.java
View file @
fec37e3
...
...
@@ -7,17 +7,17 @@ import java.util.Date;
*/
public
class
XxlJobRegistry
{
private
int
id
;
private
long
id
;
private
String
registryGroup
;
private
String
registryKey
;
private
String
registryValue
;
private
Date
updateTime
;
public
int
getId
()
{
public
long
getId
()
{
return
id
;
}
public
void
setId
(
int
id
)
{
public
void
setId
(
long
id
)
{
this
.
id
=
id
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment