Cassandra: Assertion `!table || (!table->read_set || bitmap_is_set(table->read_set, field_index))' failed on DELETE with ORDER BY

Description

This is most likely either the same problem as MDEV-476, or a closely related one. The test case is exactly the same, except that in this bug we execute the flow in the second connection and get the assertion failure; while in we execute the flow in the first connection, and get the crash. It happens both with MTR and if I start the server and execute the test manually.

With MTR, the flow, according to the general log, is such:

MDEV-476:

  • server starts;

  • connection 1 connects;

  • connection 1 executes MTR service stuff;

  • connection 1 quits;

  • connection 2 connects;

  • connection 2 executes the test case statements;

  • server crashes

This bug:

  • server starts;

  • connection 1 connects;

  • connection 1 executes MTR service stuff;

  • connection 1 quits;

  • connection 2 connects;

  • connection 3 connects;

  • connection 3 executes the test case statements;

  • assertion fails.

When I execute it manually, I do it even simpler:

MDEV-476:

  • start the server;

  • connection 1 connects;

  • connection 1 executes the test case statements;

  • server crashes.

This bug:

  • start the server;

  • connection 1 connects;

  • connection 1 quits;

  • connection 2 connects;

  • connection 2 executes the test case statements;

  • assertion fails.

I find the difference in behavior disturbing, so I'll file it separately just so it doesn't get lost. Please feel free to close it as a duplicate if that's what it is.

Test case:

Environment

None

Assignee

Sergei Petrunia

Reporter

Elena Stepanova

Labels

None

Fix versions

Priority

Major
Configure