cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip Thompson (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-9492) Error message changes based on jdk used
Date Wed, 27 May 2015 16:02:17 GMT


Philip Thompson commented on CASSANDRA-9492:

I've found using IntelliJ that with jdk8, at the relevant line in, that defaultValidator
is an instance of CounterColumnType. With jdk7, it is an instance of o.a.c.db.marshal.BytesType.

> Error message changes based on jdk used
> ---------------------------------------
>                 Key: CASSANDRA-9492
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Philip Thompson
>            Assignee: Philip Thompson
>             Fix For: 2.1.x, 2.2.x
> Running the dtest cql_tests:TestCQL.validate_counter_regular test, it passes on both
2.2-HEAD and 2.1-HEAD with jdk7, but fails with jdk8. The test attempts an invalid query and
expects a certain failure message. With jdk7, the error returned contains {{Cannot add a counter
column in a non counter column family}}.
> With jdk8 it contains {{Cannot add a non counter column in a counter column family}}.

> This check is made in, and the message returned is based on the result
of {{if (defaultValidator instanceof CounterColumnType)}}.

This message was sent by Atlassian JIRA

View raw message