Canonical downloads hide contract-discovery failures
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- csharp
调研方向
Start with CanonicalDataDownloaderDecorator, in particular GetContractsData, where producerTask is started with Task.Run and never observed, and the finally block that calls CompleteAdding. Reproduce with a synthetic IDataDownloader and an IFutureChainProvider that throws on a later date, then enumerate Get to completion. Done means the discovery exception reaches the caller on both the first-date and later-date paths, with tests covering each.
由索引模型根据 Issue 内容生成。
描述
Problem
CanonicalDataDownloaderDecorator does not observe failures from contract discovery. If a future/option chain provider throws, a canonical download can look like either no data or a successfully completed partial download.
Reproduction
Use a synthetic IDataDownloader that returns null for a canonical MNQ future and two minute bars for its dated contract. Set downloader-thread-count to 1 so the sequence is deterministic.
- Request December 8–9, 2025.
- Have
IFutureChainProvider.GetFutureContractListreturn the dated contract for December 8. - On December 9, throw
InvalidOperationException("synthetic later-date discovery failure")instead of returning a chain. - Enumerate the result of
CanonicalDataDownloaderDecorator.Getto completion.
Observed: enumeration ends normally after the earlier contract's data. The discovery exception never reaches the caller. I also tested a provider that throws on its first call: Get returns null and reports no contracts rather than reporting the discovery failure. Both behaviors reproduce with the existing consuming-probe implementation as well as with a probe that preserves the first point.
These are synthetic local reproductions, with no external data-provider requests.
Cause and expected outcome
GetContractsData starts producerTask with Task.Run but never observes that task. GetContracts is lazy, so chain-provider exceptions occur inside the producer. Its finally calls CompleteAdding, making the consumer see normal completion despite the fault.
A fix must distinguish failed contract discovery from a genuinely empty or complete chain. A suggested approach is to observe the producer's failure when consuming the result, including the no-data path; if best-effort partial results are intended, the failure and incompleteness still need to be made explicit. Cover both first-date failure and failure after an earlier contract has produced data.
- 主要语言
- C#
- 星标
- 22.6k
- 派生
- 5.4k
- 平均合并
- 11 小时 39 分钟
- 30 天内合并 PR
- 104
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
QuantConnect/Lean 的其他 Issue
-
priority:p2
难度 2/5 1-3 小时 新手友好度 72/100
QuantConnect/Lean#10216 ·
维护者通常 1 天内回复
-
priority:p2
难度 2/5 1-3 小时 新手友好度 78/100
QuantConnect/Lean#10206 ·
维护者通常 1 天内回复
-
priority:p2
难度 2/5 1-3 小时 新手友好度 85/100
QuantConnect/Lean#10199 ·
维护者通常 1 天内回复
-
priority:p2
难度 2/5 1-3 小时 新手友好度 76/100
QuantConnect/Lean#10198 ·
维护者通常 1 天内回复
-
priority:p2
难度 2/5 1-3 小时 新手友好度 78/100
QuantConnect/Lean#10197 ·
维护者通常 1 天内回复
查看 QuantConnect/Lean 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
dotnet-outdated/dotnet-outdated#871 ·
维护者通常 1 天内回复
-
triage/untriaged
难度 2/5 1-3 小时 新手友好度 78/100
unoplatform/uno#26676 ·
维护者通常 1 天内回复
-
.NET bug
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 62/100
jhaizhou-ops/S2Arm#2177 · 3 条评论 ·
维护者通常 1 天内回复
-
area-CodeGen-coreclr untriaged
难度 2/5 1-3 小时 新手友好度 65/100
dotnet/runtime#138181 · 1 条评论 ·
维护者通常 1 天内回复