Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: sysbench(100w basis data) insert report "Duplicate entry" on distributed mode #17354

Closed
1 task done
aressu1985 opened this issue Jul 6, 2024 · 4 comments
Closed
1 task done
Assignees
Labels
kind/bug Something isn't working phase/testing severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Milestone

Comments

@aressu1985
Copy link
Contributor

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

16890e4

Other Environment Information

- Hardware parameters:
3*CN: 16C 64G
1*DN: 16C 64G
3*LOG: 4C 16G
3*PROXY: 3C 7G
- OS type:
- Others:

Actual Behavior

Job link:
https://github.com/matrixorigin/mo-nightly-regression/actions/runs/9809916970/job/27105819235

image

mo-log:
https://grafana.ci.matrixorigin.cn/explore?panes=%7B%22Loj%22:%7B%22datasource%22:%22loki%22,%22queries%22:%5B%7B%22refId%22:%22A%22,%22expr%22:%22%7Bnamespace%3D%5C%22mo-main-nightly-16890e475-20240705%5C%22%7D%20%7C%3D%20%60Duplicate%20entry%20%60%22,%22queryType%22:%22range%22,%22datasource%22:%7B%22type%22:%22loki%22,%22uid%22:%22loki%22%7D,%22editorMode%22:%22builder%22%7D%5D,%22range%22:%7B%22from%22:%221720239896672%22,%22to%22:%221720240488100%22%7D%7D%7D&schemaVersion=1&orgId=1

Expected Behavior

No response

Steps to Reproduce

It is occassionally, run sysbench insert test for several times

Additional information

No response

@aressu1985 aressu1985 added kind/bug Something isn't working needs-triage severity/s0 Extreme impact: Cause the application to break down and seriously affect the use labels Jul 6, 2024
@aressu1985 aressu1985 added this to the 1.3.0 milestone Jul 6, 2024
@aressu1985 aressu1985 modified the milestones: 1.3.0, 1.2.2 Jul 6, 2024
@triump2020
Copy link
Contributor

triump2020 commented Jul 7, 2024

从DN 的日志看: 自增列值重复了, 可能是自增列缓存没有更新?

@jensenojs
Copy link
Contributor

这里有两个bug, 第一个是这里报的dup是TN发现的, 按理说应该是CN报错, 这个问题在下面的pr中fix

第二个问题就是incrserivice的cache没有更新的问题, 另外一个issue中讨论的fix能避免这个问题, 但不优雅. 但在fix之前还是要确认一下自增列的cache没有更新这个事情应该不应该.
#16493 (comment)

@zhangxu19830126
Copy link
Contributor

这个无解,cn0插入了用户手动的值xxx,但是在cn1上xxx是自增列的cache。cn1就有可能插入xxx的值

@aressu1985
Copy link
Contributor Author

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working phase/testing severity/s0 Extreme impact: Cause the application to break down and seriously affect the use
Projects
None yet
Development

No branches or pull requests

6 participants