infinity icon indicating copy to clipboard operation
infinity copied to clipboard

`free(): invalid size` will occur after Insert reaches 20000 times

Open KKould opened this issue 1 year ago • 1 comments

What happens?

image

To Reproduce

    SizeT thread_num = 1;
    SizeT total_times = 2 * 10 * 1000;

image

Environment (please complete the following information):

  • OS: [e.g. iOS]
  • infinity Version: [e.g. 0.0.1]
  • infinity Client: [e.g. PG-Client]

Before Submitting

  • [x] Have you tried this on the latest main branch?
  • [x] Give your commit id: 29abad80b592537b7bb71af8c5d297216b0003cb
  • [x] Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?

KKould avatar Nov 14 '23 03:11 KKould

zhichyu@germ:~/github.com/infiniflow/infinity$ cmake-build-debug/benchmark/local_infinity/infinity_benchmark
terminate called after throwing an instance of 'infinity::UnrecoverableException@infinity_exception'
what():  Decrease row count exceed actual row count@src/storage/meta/entry/segment_entry.cppm:184
Aborted (core dumped)

Concurrent DELETE transactions cause some rows be deleted two times. It's necessary for Txn::Commit() to detect transaction conflict of this case.

yuzhichang avatar Apr 19 '24 11:04 yuzhichang