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: bad dpn index when deleting rows #1933

Open
3 tasks done
ZhengLin-Li opened this issue Jul 7, 2023 · 4 comments
Open
3 tasks done

bug: bad dpn index when deleting rows #1933

ZhengLin-Li opened this issue Jul 7, 2023 · 4 comments
Assignees
Labels
A-bug Something isn't working prio: high High priority

Comments

@ZhengLin-Li
Copy link

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

  • I confirm there is no existing issue for this

Describe the problem

I am supporting the StoneDB in SQLacer. When deleting rows, SQLancer got: assert failed on i < m_idx.size() at tianmu_attr.h:387, msg: [bad dpn index 0/0]

FUll log:
image

Expected behavior

Delete successfully.

How To Reproduce

CREATE TABLE t1(c0 INT);
INSERT INTO t1(c0) VALUES (1), (2);
DELETE FROM t1 ORDER BY c0;

Environment

Docker Image stonedb:v1.0.3

Are you interested in submitting a PR to solve the problem?

  • Yes, I will!
@ZhengLin-Li ZhengLin-Li added the A-bug Something isn't working label Jul 7, 2023
@haitaoguan haitaoguan added the prio: high High priority label Jul 7, 2023
@chenshengjiang
Copy link
Collaborator

image
In my docker image stoneatom/stonedb:v1.0.3, everything is fine.

@haitaoguan
Copy link
Collaborator

image

./mysqld  Ver 5.7.36-StoneDB-v1.0.4 for Linux on x86_64 (build-)
build information as follow:
        Repository address: https://github.com/stoneatom/stonedb.git:stonedb-5.7-dev
        Branch name: stonedb-5.7-dev
        Last commit ID: 7321c63
        Last commit time: Date:   Wed Jul 5 17:01:29 2023 +0800
        Build time: Date: Thu Jul  6 01:48:21 UTC 2023

@ZhengLin-Li
Copy link
Author

ZhengLin-Li commented Jul 12, 2023

hi @chenshengjiang @haitaoguan @RingsC , thanks for follow up.

I run it again on stoneatom/stonedb:v1.0.4 and reproduce the same error:

image

All we need to do to reproduce this error is run those commands very fast. For example: just copy and paste those three commands and run them.

@loloxwg
Copy link

loloxwg commented Jul 20, 2023

CleanShot 2023-07-20 at 22 09 45

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-bug Something isn't working prio: high High priority
Projects
None yet
Development

No branches or pull requests

5 participants