mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-02 06:05:53 +00:00
Recently, we overhauled the error handling of UNSET_VALUE in various places where it is not allowed. This patch adds two more regression tests for this error handling. Both tests pass on Scylla today, pass on Cassandra, but fail on earlier Scylla (e.g., I tested 5.1.5): The first test does INSERT into clustering key UNSET_VALUE. An UNSET_VALUE is designed to skip part of the write - not an entire write - so this attempt should fail - not silently be skipped. The write indeed fails with an error on Cassandra, and on recent Scylla, but silently did nothing in older Scylla which leads this test to fail there. The second test does the same thing with LWT (adding an "IF NOT EXISTS") added to the insert. Scylla's failure here was even more spectacular - it crashed (as reported in issue #13001) instead of silently skipping the right. The test passes on Scylla today and on Cassandra, which both report the failure cleanly. Refs #13001. Signed-off-by: Nadav Har'El <nyh@scylladb.com> Closes #13007