Archetypes' http.content.limit cuts sitemaps, which then fail to parse
维护者通常 1 天内回复
@dpol1 已经在做这个了。
开始于 2026年11月6日。
评估
这个 Issue 还没有评估数据。
描述
The archetypes set sitemap.discovery: true and http.content.limit: 65536, and the limit applies to sitemaps too. An XML sitemap above 64 KiB is cut and fails to parse, so none of its URLs are discovered. SiteMapParserBolt marks the fetch as FETCH_ERROR and removes isSitemap, so the retry treats it as a page. sitemaps.org allows up to 50 MB.
In a 12-minute crawl of GQ32K hosts, there were 1,457 sitemap parsing failures, all on responses cut at the limit. rzo1 got 4,183 such errors in #2268. The 3.7.0 archetypes have the same settings, and there the fetch ends as ERROR. This affects the configuration shipped with the archetypes. crawler-default.yaml leaves the content size unlimited.
A higher limit in the archetypes would also apply to pages, so I suggest a separate limit for sitemaps, as we have with http.robots.content.limit and as Nutch has with sitemap.size.max. The robots.txt limit goes through the per-URL http.content.limit metadata. Sitemaps found in robots.txt or in a sitemap index already carry isSitemap=true before their fetch, so a sitemap limit could work the same way. A redirect target doesn't carry it, and neither does the retry after a parsing failure, so the limit would have to cover those too.
- 主要语言
- Java
- 星标
- 1k
- 派生
- 297
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 61
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/stormcrawler 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 55/100
apache/stormcrawler#2304 · 1 条评论 ·
维护者通常 1 天内回复
-
FetchItemQueues removes empty queues, which skips the politeness delay可能已有人在做 @GGraziadei 于 1 天前认领。 未关闭bug
apache/stormcrawler#2303 · 2 条评论 · 已指派 2 人 ·
维护者通常 1 天内回复
-
[Improvement] Work towards Maven 4 Compatibility可能已有人在做 @mvolikas 于 364 天前认领。 未关闭good first issue help wanted
apache/stormcrawler#1662 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Delete redirected pages可能重新可做 @tomatotomata 于 97 天前认领,目前没有进行中的 PR。 未关闭core good first issue
难度 4/5 3-5 天 新手友好度 48/100
apache/stormcrawler#994 · 5 条评论 ·
维护者通常 1 天内回复
-
Normalise HTTP headers可能重新可做 关联的 PR 已关闭且未合并。 未关闭core fetcher good first issue help wanted
难度 3/5 1-2 天 新手友好度 38/100
apache/stormcrawler#108 · 2 条评论 ·
维护者通常 1 天内回复
查看 apache/stormcrawler 的全部 Issue
相似的 Issue
-
Document and enforce pull request review guidelines可能已有人在做 @dashorst 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
`Time.at(t, in: nil)` returns UTC instead of the local time (or the time zone of `t`), unlike CRuby未关闭
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
hermes-queue
难度 1/5 1 小时以内 新手友好度 72/100
chrisalunlloyd2-sudo/mindpalace#349 ·
维护者通常 1 天内回复
-
Retry-After parser accepts invalid delay-seconds values可能已有人在做 @Dhruvraj-Rana 今天认领。 未关闭Bug
难度 2/5 1-3 小时 新手友好度 82/100
open-telemetry/opentelemetry-java#9018 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
dropwizard/dropwizard#11410 ·
维护者通常 1 天内回复