Merge branch 'cassandra-3.11' into cassandra-4.0

This commit is contained in:
Stefan Miklosovic 2023-06-06 16:10:16 +02:00
commit f368b9dc1e
No known key found for this signature in database
GPG Key ID: 32F35CB2F546D93E
2 changed files with 7 additions and 2 deletions

View File

@ -2,6 +2,7 @@
* Fix Down nodes counter in nodetool describecluster (CASSANDRA-18512)
* Remove unnecessary shuffling of GossipDigests in Gossiper#makeRandomGossipDigest (CASSANDRA-18546)
Merged from 3.11:
* Add keyspace and table name to exception message during ColumnSubselection deserialization (CASSANDRA-18346)
Merged from 3.0:
* Suppress CVE-2023-2976 (CASSANDRA-18562)
* Remove dh_python use in Debian packaging (CASSANDRA-18558)

View File

@ -195,10 +195,14 @@ public abstract class ColumnSubselection implements Comparable<ColumnSubselectio
{
// If we don't find the definition, it could be we have data for a dropped column, and we shouldn't
// fail deserialization because of that. So we grab a "fake" ColumnMetadata that ensure proper
// deserialization. The column will be ignore later on anyway.
// deserialization. The column will be ignored later on anyway.
column = metadata.getDroppedColumn(name);
if (column == null)
throw new UnknownColumnException("Unknown column " + UTF8Type.instance.getString(name) + " during deserialization");
{
String errorMsg = String.format("Unknown column %s in table %s.%s during deserialization",
UTF8Type.instance.getString(name), metadata.keyspace, metadata.name);
throw new UnknownColumnException(errorMsg);
}
}
Kind kind = Kind.values()[in.readUnsignedByte()];