cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-8427) An error is written to System.out when UserTypesTest is run
Date Tue, 09 Dec 2014 18:36:13 GMT

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

Tyler Hobbs commented on CASSANDRA-8427:
----------------------------------------

I'm still getting stacktraces printed when running UserTypesTest because some of the UDTs
are still used by tables.  We need to track tables to drop in the same way we track types
and functions.

> An error is written to System.out when UserTypesTest is run
> -----------------------------------------------------------
>
>                 Key: CASSANDRA-8427
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-8427
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Benjamin Lerer
>            Assignee: Benjamin Lerer
>            Priority: Minor
>             Fix For: 3.0, 2.1.3
>
>         Attachments: CASSANDRA-8427-2.1.txt, CASSANDRA-8427-trunk.txt
>
>
> When running {{org.apache.cassandra.cql3.UserTypesTest}} the following error is printed
out to the console.
> {code}ERROR 09:58:41 Fatal exception in thread Thread[OptionalTasks:1,5,main]
> java.lang.RuntimeException: java.lang.RuntimeException: Error setting schema for test
(query was: DROP TYPE IF EXISTS cql_test_keyspace.type_2)
> 	at org.apache.cassandra.cql3.CQLTester$1.run(CQLTester.java:188) ~[classes/:na]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_60]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_60]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
~[na:1.7.0_60]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
~[na:1.7.0_60]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_60]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_60]
> 	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60]
> Caused by: java.lang.RuntimeException: Error setting schema for test (query was: DROP
TYPE IF EXISTS cql_test_keyspace.type_2)
> 	at org.apache.cassandra.cql3.CQLTester.schemaChange(CQLTester.java:413) ~[classes/:na]
> 	at org.apache.cassandra.cql3.CQLTester.access$3(CQLTester.java:404) ~[classes/:na]
> 	at org.apache.cassandra.cql3.CQLTester$1.run(CQLTester.java:167) ~[classes/:na]
> 	... 7 common frames omitted
> Caused by: java.lang.RuntimeException: Error validating query DROP TYPE IF EXISTS cql_test_keyspace.type_2
> 	at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:374)
~[main/:na]
> 	at org.apache.cassandra.cql3.CQLTester.schemaChange(CQLTester.java:409) ~[classes/:na]
> 	... 9 common frames omitted
> Caused by: org.apache.cassandra.exceptions.InvalidRequestException: Cannot drop user
type cql_test_keyspace.type_2 as it is still used by user type type_3
> 	at org.apache.cassandra.cql3.statements.DropTypeStatement.validate(DropTypeStatement.java:93)
~[main/:na]
> 	at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:361)
~[main/:na]
> 	... 10 common frames omitted
> ERROR 09:58:41 Fatal exception in thread Thread[OptionalTasks:1,5,main]
> java.lang.RuntimeException: java.lang.RuntimeException: Error setting schema for test
(query was: DROP TYPE IF EXISTS cql_test_keyspace.type_2)
> 	at org.apache.cassandra.cql3.CQLTester$1.run(CQLTester.java:188) ~[classes/:na]
> 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_60]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_60]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
~[na:1.7.0_60]
> 	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
~[na:1.7.0_60]
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_60]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_60]
> 	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_60]
> Caused by: java.lang.RuntimeException: Error setting schema for test (query was: DROP
TYPE IF EXISTS cql_test_keyspace.type_2)
> 	at org.apache.cassandra.cql3.CQLTester.schemaChange(CQLTester.java:413) ~[classes/:na]
> 	at org.apache.cassandra.cql3.CQLTester.access$3(CQLTester.java:404) ~[classes/:na]
> 	at org.apache.cassandra.cql3.CQLTester$1.run(CQLTester.java:167) ~[classes/:na]
> 	... 7 common frames omitted
> Caused by: java.lang.RuntimeException: Error validating query DROP TYPE IF EXISTS cql_test_keyspace.type_2
> 	at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:374)
~[main/:na]
> 	at org.apache.cassandra.cql3.CQLTester.schemaChange(CQLTester.java:409) ~[classes/:na]
> 	... 9 common frames omitted
> Caused by: org.apache.cassandra.exceptions.InvalidRequestException: Cannot drop user
type cql_test_keyspace.type_2 as it is still used by user type type_3
> 	at org.apache.cassandra.cql3.statements.DropTypeStatement.validate(DropTypeStatement.java:93)
~[main/:na]
> 	at org.apache.cassandra.cql3.QueryProcessor.executeOnceInternal(QueryProcessor.java:361)
~[main/:na]
> 	... 10 common frames omitted{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message