stoneatom / stonedb

StoneDB is an Open-Source MySQL HTAP and MySQL-Native DataBase for OLTP, Real-Time Analytics, a counterpart of MySQLHeatWave. (https://stonedb.io)
https://stonedb.io/
GNU General Public License v2.0
857 stars 140 forks source link

bug: bad dpn index when deleting rows #1933

Open ZhengLin-Li opened 1 year ago

ZhengLin-Li commented 1 year ago

Have you read the Contributing Guidelines on issues?

Please confirm if bug report does NOT exists already ?

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?

chenshengjiang commented 12 months ago

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

haitaoguan commented 12 months ago

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 commented 12 months ago

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 commented 11 months ago

CleanShot 2023-07-20 at 22 09 45