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

Locale settings on windows can break schema

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Fix Version/s: 1.2.0 beta 1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Windows

      Description

      The locale settings on windows can somehow affect how schema information is either saved or loaded. When setting locale/language settings to Turkish, and then starting cassandra, schema changes can be made successfully. When restarting cassandra though, the following error is seen:

      INFO [main] 2012-04-18 19:18:59,142 DatabaseDescriptor.java (line 501) Loading schema version 4404f2e0-898b-11e1-0000-242d50cf1fbf
       ERROR [main] 2012-04-18 19:18:59,391 AbstractCassandraDaemon.java (line 373) Exception encountered during startup
       org.apache.avro.SchemaParseException: "strıng" is not a defined name. The type of the "name" field must be a defined name or a {"type": ...} expression.
      	at org.apache.avro.Schema.parse(Schema.java:986)
      	at org.apache.avro.Schema.parse(Schema.java:893)
      	at org.apache.cassandra.db.DefsTable.loadFromStorage(DefsTable.java:90)
      	at org.apache.cassandra.config.DatabaseDescriptor.loadSchemas(DatabaseDescriptor.java:502)
      	at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:180)
      	at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:356)
      	at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)
      

      This was reported on the DataStax forums, as well as reproduced by myself. http://www.datastax.com/support-forums/topic/cassandra-service-doesnt-start

        Attachments

          Activity

            People

            • Assignee:
              xedin Pavel Yaskevich
              Reporter:
              nickmbailey Nick Bailey
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: