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

Hoss Man commented on SOLR-6531:
--------------------------------

DirectoryFactory defines an abstract createLockFactory method.

Look at any implementation of createLockFactory and you'll see how each 
implmentation limits which lockTypes can be used.

in each case, the error message thrown if you specify an invalid lockType 
should say waht the valid lockTypes are.

steps to reproduce: edit the same solrconfig.xml and replace 
{{<lockType>$\{solr.lock.type:native\}</lockType>}} with 
{{<lockType>bogus</lockType>}} - you'll get an error mssage that doesn't tell 
you what non-bogus values are supported for that DirectoryFactory.

> better error message when lockType doesn't work with directoryFactory
> ---------------------------------------------------------------------
>
>                 Key: SOLR-6531
>                 URL: https://issues.apache.org/jira/browse/SOLR-6531
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Hoss Man
>              Labels: difficulty-easy, impact-low
>
> SOLR-6519 improved the logic about which lockTypes could be configured with 
> which directoryFactory implementations, but the result is a somewhat 
> confusing error message.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to