Cassandra
  1. Cassandra
  2. CASSANDRA-4169

Locale settings on windows can break schema

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Won't Fix
    • Fix Version/s: 1.2.0 beta 1
    • Component/s: Core
    • 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

        Activity

        Gavin made changes -
        Workflow patch-available, re-open possible [ 12749482 ] reopen-resolved, no closed status, patch-avail, testing [ 12757041 ]
        Gavin made changes -
        Workflow no-reopen-closed, patch-avail [ 12663030 ] patch-available, re-open possible [ 12749482 ]
        Pavel Yaskevich made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Jonathan Ellis made changes -
        Field Original Value New Value
        Assignee Pavel Yaskevich [ xedin ]
        Nick Bailey created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development