Skip to content

[Bug]: checking regression snapshot read result wrong #16501

Closed

Description

@YANGGMM

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

newest

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

image

Expected Behavior

No response

Steps to Reproduce

https://github.com/matrixorigin/matrixone/actions/runs/9296726405/job/25585995958

Additional information

No response

Activity

  1. added
    kind/bug
    on May 30, 2024
  2. added this to the 1.2.0 milestone on May 30, 2024
  3. added
    severity/s0
    on May 30, 2024
  4. modified the milestones: 1.2.0, 1.3.0-Backlog on May 30, 2024
  5. YANGGMM commented on May 30, 2024

    @YANGGMM
    ContributorAuthor
    image
  6. YANGGMM commented on May 30, 2024

    @YANGGMM
    ContributorAuthor
    image
  7. self-assigned this
    on May 30, 2024
  8. modified the milestones: 1.3.0-Backlog, 1.3.0 on Jun 3, 2024
  9. removed their assignment
    on Jun 6, 2024
  10. triump2020 commented on Jun 6, 2024

    @triump2020
    Contributor

    snapshot read 时 产生了这样的时序导致的: 1. 调用某个 table 的 ranges 时,获取了一个 ps1(partition state 1), 数据在ps1.rows 里,没有obj/blk; 2. 数据刷盘,产生了logtail , apply table 的 logtail , 会产生一个新的 ps2, 这时ps2 里的rows 会被清空, 3. 调用partition reader 时,拿到了这个新的ps2 , 而partition reader 只会读rows里的数据,所以为空.

    disttae 目前实现有个约束: 在调用txnTable.Ranges 时,取到的partiiton state , 要存起来,给 run 阶段时 的partiton reader 用.

    对于上层需 保证: 调用ranges 时 的 snapshot op 与 调用reader 时的snapshot op 一样.

  11. YANGGMM commented on Jun 11, 2024

    @YANGGMM
    ContributorAuthor

    已经提了pr

  12. Ariznawlll commented on Jun 18, 2024

    @Ariznawlll
    Collaborator

    观察了几天,没再出现了

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

Metadata

Metadata

Assignees

Labels

kind/bugphase/testingseverity/s0

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions