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

Cassandra can't start because of unknown type <usertype> exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 3.7
    • Component/s: Legacy/Core, Legacy/CQL
    • Labels:
      None
    • Environment:

      Development

    • Severity:
      Normal
    • Since Version:
      3.7

      Description

      OS: CentOS Linux release 7.2.1511 (Core)
      Kernel: 3.10.0-327.36.1.el7.x86_64
      Cassandra: v 3.7

      Issue:

      Cassandra is not able to start after restart of the node with following error in system.log:

      ERROR [main] 2017-08-03 12:10:28,633 CassandraDaemon.java:731 - Exception encountered during startup
      org.apache.cassandra.exceptions.InvalidRequestException: Unknown type <name of user type>
      at org.apache.cassandra.cql3.CQL3Type$Raw$RawUT.prepare(CQL3Type.java:751) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.cql3.CQL3Type$Raw$RawCollection.prepare(CQL3Type.java:667) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.cql3.CQL3Type$Raw$RawCollection.prepareInternal(CQL3Type.java:644) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.schema.Types$RawBuilder$RawUDT.lambda$prepare$34(Types.java:313) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) ~[na:1.8.0_102]
      at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1374) ~[na:1.8.0_102]
      at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) ~[na:1.8.0_102]
      at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) ~[na:1.8.0_102]
      at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) ~[na:1.8.0_102]
      at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[na:1.8.0_102]
      at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) ~[na:1.8.0_102]
      at org.apache.cassandra.schema.Types$RawBuilder$RawUDT.prepare(Types.java:314) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.schema.Types$RawBuilder.build(Types.java:263) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.schema.SchemaKeyspace.fetchTypes(SchemaKeyspace.java:920) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspace(SchemaKeyspace.java:891) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.schema.SchemaKeyspace.fetchKeyspacesWithout(SchemaKeyspace.java:869) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.schema.SchemaKeyspace.fetchNonSystemKeyspaces(SchemaKeyspace.java:857) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:136) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.config.Schema.loadFromDisk(Schema.java:126) ~[apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:251) [apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:585) [apache-cassandra-3.7.0.jar:3.7.0]
      at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:714) [apache-cassandra-3.7.0.jar:3.7.0]

      Thank you for your help!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Andrey.Khashchin Andrey Khashchin
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: