You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Brad Schoening (Jira)" <ji...@apache.org> on 2023/03/21 12:36:00 UTC
[jira] [Updated] (CASSANDRA-18346) Error Unknown column during deserialization missing keyspace and table name
[ https://issues.apache.org/jira/browse/CASSANDRA-18346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brad Schoening updated CASSANDRA-18346:
---------------------------------------
Description:
The ERROR message generated in ColumnSubselection.java when a column name is not found only prints the column name, not the keyspace and table. It can be difficult to track down the source when more than one table uses the same name. E.g., 'id'.
{quote}{{if (column == null)}}
{\{{}}
{{ // 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.}}
{{ column = metadata.getDroppedColumn(name);}}
{{ if (column == null)}}
{{ throw new UnknownColumnException("Unknown column " + UTF8Type.instance.getString(name) + " during deserialization");}}
{{}}}
{quote}
Example:
[ERROR] cluster_id=15 ip_address=192.168.65.10 java.lang.RuntimeException: Unknown column id during deserialization
Proposed:
[ERROR] cluster_id=15 ip_address=192.168.65.10 java.lang.RuntimeException: Unknown column id in table cycling.route during deserialization
was:
The ERROR message generated in ColumnSubselection.java when a column name is not found only prints the column name, not the keyspace and table. It can be difficult to track down the source when more than one table uses the same name. E.g., 'id'.
{quote}{{if (column == null)}}
{{{}}
{{ // 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.}}
{{ column = metadata.getDroppedColumn(name);}}
{{ if (column == null)}}
{{ throw new UnknownColumnException("Unknown column " + UTF8Type.instance.getString(name) + " during deserialization");}}
{{}}}
{quote}
> Error Unknown column during deserialization missing keyspace and table name
> ---------------------------------------------------------------------------
>
> Key: CASSANDRA-18346
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18346
> Project: Cassandra
> Issue Type: Bug
> Components: Observability/Logging
> Reporter: Brad Schoening
> Priority: Normal
>
> The ERROR message generated in ColumnSubselection.java when a column name is not found only prints the column name, not the keyspace and table. It can be difficult to track down the source when more than one table uses the same name. E.g., 'id'.
> {quote}{{if (column == null)}}
> {\{{}}
> {{ // 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.}}
> {{ column = metadata.getDroppedColumn(name);}}
> {{ if (column == null)}}
> {{ throw new UnknownColumnException("Unknown column " + UTF8Type.instance.getString(name) + " during deserialization");}}
> {{}}}
> {quote}
> Example:
> [ERROR] cluster_id=15 ip_address=192.168.65.10 java.lang.RuntimeException: Unknown column id during deserialization
> Proposed:
> [ERROR] cluster_id=15 ip_address=192.168.65.10 java.lang.RuntimeException: Unknown column id in table cycling.route during deserialization
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org