mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-21 00:50:35 +00:00
Empty values (zero-sized string in serialized form) were not handled properly in serialize routines for floating types and uuids, which led to runtime exceptions and failing tests as described in https://github.com/scylladb/scylla/issues/5782. Also fix validation visitor to handle empty values properly. There already was the code in place that took into consideration zero-sized values. But it was trying to read some bytes regardless of that (e.g. for timeuuid values), even if there is none to read. Tests: unit(dev, debug) Fixes: #5782 Signed-off-by: Pavel Solodovnikov <pa.solodovnikov@scylladb.com> Message-Id: <20200213130021.31598-1-pa.solodovnikov@scylladb.com>