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

Anurag Sharma commented on SOLR-6598:
-------------------------------------

Is it specific to MacOS? Case sensitive names are supported by most of the OS.

> Solr Collections API, case sensitivity of collection name and 
> core's/replica's instance directory
> -------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-6598
>                 URL: https://issues.apache.org/jira/browse/SOLR-6598
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>    Affects Versions: 4.10.1
>         Environment: Mac OS X
>            Reporter: Alexey Serba
>            Priority: Trivial
>
> Solr Collections API returns misleading error when trying to create two 
> collections with the same name but with different case on MacOS file system 
> (which is case insensitive). 
> {noformat}
> sh> curl 
> 'http://localhost:8983/solr/admin/collections?action=CREATE&name=test&numShards=1&collection.configName=default&indent=true&wt=json'
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":1949},
>   "success":{
>     "":{
>       "responseHeader":{
>         "status":0,
>         "QTime":1833},
>       "core":"test_shard1_replica1"}}}
> sh> curl 
> 'http://localhost:8983/solr/admin/collections?action=CREATE&name=TEST&numShards=1&collection.configName=default&indent=true&wt=json'
> {
>   "responseHeader":{
>     "status":0,
>     "QTime":2509},
>   "failure":{
>     
> "":"org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
>  CREATEing SolrCore 'TEST_shard1_replica1': Unable to create core 
> [TEST_shard1_replica1] Caused by: Lock obtain timed out: 
> NativeFSLock@/Users/alexey/Desktop/solr-4.10.1/node1/solr/test_shard1_replica1/data/index/write.lock"}}
> {noformat}
> See {{Lock obtain timed out}} exception. It will be more user friendly to 
> check existence of instance dir {{test_shard1_replica1}} and return something 
> like "Node A has replica B that uses the same index directory" exception 
> (instead of just trying to hijack that existing directory and then 
> propagating the inexplicable lock exception that arises as a result).



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to