Skip to content

perf: File-Worker下线过程中的日志优化 #4338

Description

@jsonwan

File-Worker下线过程中,出现以下日志:

[2026-06-04 10:42:26.012]  INFO [job-file-worker,,] 6 --- [SpringApplicationShutdownHook] c.t.b.j.f.w.config.GracefulShutdown      : worker apply to offLine, 3 tasks to be reDispatched are [00834b1462e54ef2bcee40ab0144dd9b, 00834b1462e54ef2bcee40ab0144dd9b, 00834b1462e54ef2bcee40ab0144dd9b]

[2026-06-04 10:42:29.134] ERROR [job-file-gateway,4c716b01d5f0cbe1429022596d19ae66,fddd177a9389e616] 6 --- [http-nio-19809-exec-2] c.t.b.j.f.s.i.FileSourceTaskServiceImpl  : Cannot find fileTaskDTO by taskId 00834b1462e54ef2bcee40ab0144dd9b filePath bknodeman/bknodeman/xxx.tgz

反映出以下问题:

  1. File-Worker下线重调度时未对fileSourceTaskId进行去重;
  2. 重调度是一个预期内的正常逻辑,不应当产生错误日志,日志级别需要调整为WARN。

Metadata

Metadata

Assignees

Labels

backlog需求初始状态,等待产品进行评估kind/enhancement功能改进特性

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions