mage icon indicating copy to clipboard operation
mage copied to clipboard

[BUG] Running do.when/do.case at the same time crashes Memgraph

Open matea16 opened this issue 1 year ago • 4 comments

Running two queries calling do.when/do.case at the same time from a nodeJS client crashes Memgraph. From Discord: "If I only run one query nothing crashes but as soon as two or more queries get executed simultaneously I need to stop and restart memgraph. I've tried a few other mage algorithms all of which work and do not crash memgraph. Only do.when and do.case exhibit this behaviour."

To replicate, use the following query:

CALL do.when(true, "return true as a","",{})
yield value
return true as a

Source

matea16 avatar Jan 29 '24 12:01 matea16

Will be fixed with @Josipmrden 's PR.

andrejtonev avatar Mar 01 '24 11:03 andrejtonev

Should be resolved but we didn't test this behaviour.

Josipmrden avatar Apr 12 '24 08:04 Josipmrden

@matea16 can you try it out?

katarinasupe avatar Apr 12 '24 08:04 katarinasupe

It seems to be working, I wasn't able to crash it. I'll ask user to test it out further and check if it works as expected now

matea16 avatar Apr 12 '24 09:04 matea16