Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-8427

An error is written to System.out when UserTypesTest is run

    XMLWordPrintableJSON

Details

    • Low

    Description

      When running org.apache.cassandra.cql3.UserTypesTest the following error is printed out to the console.

      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

      Attachments

        1. CASSANDRA-8427-2.1.txt
          2 kB
          Benjamin Lerer
        2. CASSANDRA-8427-2.1-V2.txt
          8 kB
          Benjamin Lerer
        3. CASSANDRA-8427-trunk.txt
          4 kB
          Benjamin Lerer
        4. CASSANDRA-8427-trunk-V2.txt
          10 kB
          Benjamin Lerer

        Activity

          People

            blerer Benjamin Lerer
            blerer Benjamin Lerer
            Benjamin Lerer
            Tom Hobbs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: