MemoryCacheTest's "ooms the mem-cache" should not lose its idle mapping under full-suite load
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with MemoryCacheTest.kt:211 and the MemoryCache fetch loop and evictIdleFiles behavior described in the issue. Reproduce under the full ./gradlew test suite, then compare dispatcher-controlled ordering with the cache’s idle reuse behavior. Done when the test is reliable under full-suite load and the cause is addressed.
由索引模型根据 Issue 内容生成。
描述
MemoryCacheTest's ooms the mem-cache should pass under full-suite load; it intermittently finds the idle mapping it expects to reuse already gone.
- Seen once in a full
./gradlew teston a branch that doesn't touchxtdb.cache(#6440), atMemoryCacheTest.kt:211:
AssertionFailedError: the second get's mapping, still idle ==> expected: <2> but was: <3> - Passes in isolation — 8 of 8 runs of
:xtdb-core:test --tests 'xtdb.cache.MemoryCacheTest'on the same tree.
Analysis
- The test's
PathLoaderstamps each load with a counter, so3means the thirdgetre-loaded the file rather than reusing the 50-byte slice's mapping. - assumption: the second get's mapping is evicted, or not yet idle, by the time the third
getruns —MemoryCacheruns its fetch loop andevictIdleFilesonDispatchers.IO, while the test runs underrunTest, so the order of the release, the eviction pass and the nextgetdepends on thread timing. Not confirmed.
Open questions
- Q1: should the test inject a single-threaded dispatcher (
MemoryCachetakes one; it yields when it isn'tDispatchers.IO), or is the cache's idle-reuse guarantee itself racy?
- 主要语言
- Clojure
- 星标
- 3.1k
- 派生
- 193
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 73
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
xtdb/xtdb 的其他 Issue
-
unshaved-yak
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
sql unshaved-yak
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
flaky
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
metrics
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
相似的 Issue
-
.Needs Triage .Team/UXWest Misc/Accessibility Priority:P3 Type:New Feature
难度 2/5 1-3 小时 新手友好度 78/100
metabase/metabase#88153 · 1 条评论 ·
维护者通常 1 天内回复
-
needs triage
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
editor-code-assistant/eca#717 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
nasa/Common-Metadata-Repository#2544 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100