memgraph / mage

MAGE - Memgraph Advanced Graph Extensions :crystal_ball:
Apache License 2.0
238 stars 23 forks source link

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

Open matea16 opened 5 months ago

matea16 commented 5 months ago

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

andrejtonev commented 4 months ago

Will be fixed with @Josipmrden 's PR.

Josipmrden commented 2 months ago

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

katarinasupe commented 2 months ago

@matea16 can you try it out?

matea16 commented 2 months ago

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