Assertion `status_var.memory_used == 0' fails on disconnect after SELECT with materialization+semijoin

Description

The test case is not great, it uses a sleep, but more civilized ways (like count_sessions and such) didn't do the trick reliably -- the problem happens anyway, but the server goes down before the assertion failure fully blossoms. The idea of the rough test is to show that the failure actually happens on normal session disconnect, rather than on server shutdown or KILL.

Stack trace from:

Environment

None

Assignee

Unassigned

Reporter

Elena Stepanova

Labels

None

Fix versions

Affects versions

Priority

Major
Configure