cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhammed Demirbaş (JIRA) <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11308) No enum constant ColumnMetadata.Raw.Kind.CLUSTERİNG_KEY in Turkish locale
Date Sat, 05 Mar 2016 12:18:40 GMT

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

Muhammed Demirbaş commented on CASSANDRA-11308:
-----------------------------------------------

Source of the problem is [_DataStax driver_ for Cassandra|https://github.com/datastax/java-driver],
not the Cassandra itself:

[ColumnMetadata.java:374|https://github.com/datastax/java-driver/blob/49bb860bb5709948442b7046fd31f528e762d64a/driver-core/src/main/java/com/datastax/driver/core/ColumnMetadata.java#L374]

> No enum constant ColumnMetadata.Raw.Kind.CLUSTERİNG_KEY in Turkish locale
> -------------------------------------------------------------------------
>
>                 Key: CASSANDRA-11308
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11308
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Windows 10 x64, Turkish. 
>            Reporter: Muhammed Demirbaş
>            Priority: Critical
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> _JetBrains UpSource 2.5_ failed at _upsource-cluster-init_ phase with the exception below.
I think the reason is *locale-sensitive toUpperCase* operation, because in a Turkish locale,
{{'i'.toUpperCase()}} is {{'İ'}} and {{'ı'.toUpperCase()}} is {{'I'}}.
> (related module is  {{<Upsource_Home>\lib\upsource\plugins\database-datastax\lib\cassandra-driver-core-2.2.0-rc1.jar}}
> {code}
> com.datastax.driver.core.ControlConnection - Error parsing schema from Cassandra system
tables: the schema in Cluster#getMetadata() will appear incomplete or stale java.lang.IllegalArgumentException:
No enum constant com.datastax.driver.core.ColumnMetadata.Raw.Kind.CLUSTERİNG_KEY
>   at java.lang.Enum.valueOf(Enum.java:238)
>   at com.datastax.driver.core.ColumnMetadata$Raw.fromRow(ColumnMetadata.java:226)
>   at com.datastax.driver.core.Metadata.rebuildSchema(Metadata.java:85)
>   at com.datastax.driver.core.ControlConnection.refreshSchema(ControlConnection.java:377)
>   at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:271)
>   at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:194)
>   at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:82)
>   at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1265)
>   at com.datastax.driver.core.Cluster.getMetadata(Cluster.java:337)
>   at com.jetbrains.upsource.database.datastax.DatastaxCqlCluster.buildClusterWithRetry(DatastaxCqlCluster.java:285)
>   at com.jetbrains.upsource.database.datastax.DatastaxCqlCluster.<init>(DatastaxCqlCluster.java:83)
>   at com.jetbrains.upsource.database.datastax.CqlClusterFactory.createCluster(CqlClusterFactory.java:26)
>   at com.jetbrains.upsource.backend.server.ClusterManagerImpl.create(ClusterManagerImpl.java:79)
>   at com.jetbrains.upsource.backend.server.facade.UpsourceApplicationEnvironment.<init>
UpsourceApplicationEnvironment.java:114)
>   at com.jetbrains.upsource.ClusterInitService.start(ClusterInitService.java:44)
>   at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:83)
>   at com.jetbrains.launcher.AppProxy$4.call(AppProxy.java:81)
>   at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>   at java.lang.Thread.run(Thread.java:745)
> line 1:34 no viable alternative at character 'ı'
> {code}



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

Mime
View raw message