Skip to content

test(runtime-broker): InMemory repositories drift from JDBC semantics, hiding JDBC-only races from service tests #13204

Description

@wenshao

What happened?

The in-memory repositories are the reference backends for RuntimeBrokerService tests, but their semantics drift from the JDBC ones, so those tests are blind to JDBC-only behavior:

Split out from #13183 (medium cluster).

What did you expect to happen?

Either align the in-memory implementations with the JDBC semantics (including the 100-row pass bound and lease rounding), or run the shared repository contract suite (RuntimeRecoveryContract) against both backends with the drift points pinned explicitly, so a divergence fails the build.

Client information

N/A — code audit finding.

中文

发生了什么?

InMemory 仓库是 RuntimeBrokerService 服务层测试的参考后端,但其语义与 JDBC 实现漂移,导致这些测试对 JDBC 专有行为失明:

拆自 #13183 的 Medium 簇。

期望行为

二选一:让 InMemory 实现对齐 JDBC 语义(含 100 行批次上界与租约取整),或让共享仓库契约套件(RuntimeRecoveryContract)同时跑两种后端并显式钉住漂移点,使漂移在构建期失败。

客户端信息

N/A —— 代码审计发现。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    category/developmentDevelopment experiencepriority/P3Low - Minor, cosmetic, nice-to-fix issuesscope/sdkscope/testingTest frameworks and casesstatus/need-informationMore information is needed to resolve this issue.type/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions