integer and floats as keys may cause mnesia_locker to crash the node on < OTP-24.3.3 #6327
Labels
bug
Issue is reported as a bug
priority:low
stalled
waiting for input by the Erlang/OTP team
team:PS
Assigned to OTP team PS
Describe the bug
When trying to insert two keys into a table in a single transaction where one key is
1
and the other key is1.0
mnesia_locker explodes and causes the node to go down.To Reproduce
Causes the following stacktrace:
This is unexpected since the following code snippet works as expected and produces two distinct records in the DB. The key difference here being that the two records are written in separate transactions.
Expected behavior
The node doesn't go down
Affected versions
The OTP versions that are affected by this bug:
Additional context
It seems it was fixed as part of: 8988ef4 as this issue no longer presents itself since that commit (Tested with: 24.3.4.5 and 25.1).
Perhaps a test could be added at least which prevents this sort of bug from re-occurring if the mnesia locker is changed in the future as it's not clear that this bug was intentionally fixed?
The text was updated successfully, but these errors were encountered: