MapColonies / MapColonies/GpkgMerger

Merger puts tasks 'In-Progress' for each task type that exists parallely (MAPCO-4446)

未关闭
#159 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

bug
主要语言
C#
星标
1
派生
2
平均合并
21 分钟
30 天内合并 PR
1

描述

If exists, TilesMerger pulls a task for each task type, if tasks exist then all but one are "lost" and get a status of In-Progress.

The relevant code is in the MainRunner file:
https://github.com/MapColonies/GpkgMerger/blob/653bdd5b9e4a17823d70ea03bbf751198c7944fc/MergerService/Runners/MainRunner.cs#L36-L40

phenomenon:
Once three ingestion processes are in parallel, tasks from all ingestion processes are moved to status In-Progress, although the merger does not work on them.

To Reproduce
Run multiple (at least 2) ingestion jobs with different ingestion types with existing tasks. (swap, new, update).

Actual behavior
Merger moves tasks to In-Progress although not working on them.

Expected behavior
Merger will "mark" only one task as In-Progress and work on it.

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 MergerService/Runners/MainRunner.cs 开始,重点查看第 36-40 行,并通过运行至少两个类型不同的 ingestion job(例如 swap、new 和 update)来复现该问题。跟踪存在多个 task 时哪些 task 被标记为 In-Progress。完成的标准是:只有正在处理的 task 被标记为 In-Progress,其他 task 保持可用。

由索引模型根据 Issue 内容生成。

评估

技术栈
csharp
领域
backend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。