You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Petrov (Jira)" <ji...@apache.org> on 2020/10/09 07:54:00 UTC

[jira] [Comment Edited] (CASSANDRA-16155) ByteBufferAccessor cast exceptions are thrown when trying to query a virtual table

    [ https://issues.apache.org/jira/browse/CASSANDRA-16155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17210685#comment-17210685 ] 

Alex Petrov edited comment on CASSANDRA-16155 at 10/9/20, 7:53 AM:
-------------------------------------------------------------------

[~dcapwell] there is a test [here|https://github.com/apache/cassandra/pull/764/files#diff-3c0c566b23d7afa27bac87b84858399eR234-R250], which is equivalent to Caleb's test [here|https://github.com/apache/cassandra/pull/766/files#diff-3040722d64285d97ebc45109bf21aac1R38]. Both tests exercise the same code path, and latter uses a lower-level API.

[~maedhroz] do you have any objections to committing a test that's similar to the rest of {{VirtualTableTest}} tests?

[~dcapwell] you've also mentioned in review comment "for me: the issue was that the method didn't take it, but takes Object...", what do you think can be an alternative here? Unfortunately we do not have a more specific type to prevent something similar happening in the future.


was (Author: ifesdjeen):
[~dcapwell] there is a test [here|https://github.com/apache/cassandra/pull/764/files#diff-3c0c566b23d7afa27bac87b84858399eR234-R250], which is equivalent to Caleb's test [here|https://github.com/apache/cassandra/pull/766/files#diff-3040722d64285d97ebc45109bf21aac1R38]. Both tests exercise the same code path, and latter uses a lower-level API.

[~maedhroz] do you have any objections to committing a test that's similar to the rest of {{VirtualTableTest}} tests?

> ByteBufferAccessor cast exceptions are thrown when trying to query a virtual table
> ----------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-16155
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-16155
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Feature/Virtual Tables
>            Reporter: Alex Petrov
>            Assignee: Alex Petrov
>            Priority: Normal
>
> Start a fresh trunk node, and try to run
> SELECT * FROM system_views.local_read_latency ;
> You’ll get: 
> {code:java}
> ERROR [Native-Transport-Requests-1] 2020-09-30 09:44:45,099 ErrorMessage.java:457 - Unexpected exception during request
>  java.lang.ClassCastException: org.apache.cassandra.db.marshal.ByteBufferAccessor cannot be cast to java.lang.String
>          at org.apache.cassandra.serializers.AbstractTextSerializer.serialize(AbstractTextSerializer.java:29)
>          at org.apache.cassandra.db.marshal.AbstractType.decompose(AbstractType.java:131) {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org