You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alexandre Rafalovitch (JIRA)" <ji...@apache.org> on 2016/10/06 12:11:22 UTC

[jira] [Commented] (SOLR-300) create subclass of SingleInstanceLockFactory which warns loadly in the event of concurrent lock attempts

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

Alexandre Rafalovitch commented on SOLR-300:
--------------------------------------------

Is this still relevant with simple type being no longer the default? Also, I thought there was a lot of lock-related work done in 6.x.

> create subclass of SingleInstanceLockFactory which warns loadly in the event of concurrent lock attempts
> --------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-300
>                 URL: https://issues.apache.org/jira/browse/SOLR-300
>             Project: Solr
>          Issue Type: Wish
>          Components: update
>            Reporter: Hoss Man
>            Priority: Minor
>
> as noted by yonik in SOLR-240...
> How about SingleInstanceLockFactory to aid in catching concurrency bugs?
>   ...
> or even better, a subclass or other implementation: SingleInstanceWarnLockFactory or SingleInstanceCoordinatedLockFactory that log a failure if obtain() is called for a lock that is already locked.
> we should create a new subclass like Yonik describes and change SolrIndexWriter to use this subclass if/when "single" is specified as the lockType.



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

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