[ https://issues.apache.org/jira/browse/CASSANDRA-9492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Philip Thompson updated CASSANDRA-9492: --------------------------------------- Description: 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}}, but with jdk8 it contains {{Cannot add a non counter column}}. This check is made in CFMetadata.java, and the message returned is based on the result of {{if (defaultValidator instanceof CounterColumnType)}}. was: 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}, but with jdk8 it contains {{Cannot add a non counter column}}. This check is made in CFMetadata.java, and the message returned is based on the result of {{if (defaultValidator instanceof CounterColumnType)}}. > Error message changes based on jdk used > --------------------------------------- > > Key: CASSANDRA-9492 > URL: https://issues.apache.org/jira/browse/CASSANDRA-9492 > 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}}, but with jdk8 it > contains {{Cannot add a non counter column}}. > This check is made in CFMetadata.java, and the message returned is based on > the result of {{if (defaultValidator instanceof CounterColumnType)}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332)